pub struct SyncStream<S> { /* private fields */ }
Expand description
Stream
which is Sync
.
§Examples
use sync_wrapper::SyncStream;
use futures::stream;
let st = stream::iter(vec![1]);
let st = SyncStream::new(st);
Implementations§
Source§impl<S: Stream> SyncStream<S>
impl<S: Stream> SyncStream<S>
pub fn new(inner: S) -> Self
pub fn into_inner(self) -> S
Trait Implementations§
Source§impl<T> Debug for SyncStream<T>
impl<T> Debug for SyncStream<T>
Source§impl<S: Stream> Stream for SyncStream<S>
impl<S: Stream> Stream for SyncStream<S>
Auto Trait Implementations§
impl<S> Freeze for SyncStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for SyncStream<S>where
S: RefUnwindSafe,
impl<S> Send for SyncStream<S>where
S: Send,
impl<S> Sync for SyncStream<S>
impl<S> Unpin for SyncStream<S>where
S: Unpin,
impl<S> UnwindSafe for SyncStream<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more