pub struct StreamWriter { /* private fields */ }Expand description
The write end of a byte stream. Bounded: write awaits
when the buffer is full, so production can’t outrun a slow consumer. Dropping
the writer ends the stream (the reader then sees None).
Implementations§
Trait Implementations§
Source§impl Clone for StreamWriter
impl Clone for StreamWriter
Source§fn clone(&self) -> StreamWriter
fn clone(&self) -> StreamWriter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamWriter
impl RefUnwindSafe for StreamWriter
impl Send for StreamWriter
impl Sync for StreamWriter
impl Unpin for StreamWriter
impl UnsafeUnpin for StreamWriter
impl UnwindSafe for StreamWriter
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