pub struct WriteBuf<'a> { /* private fields */ }
Implementations§
source§impl<'a> WriteBuf<'a>
impl<'a> WriteBuf<'a>
sourcepub fn want_shutdown(&self)
pub fn want_shutdown(&self)
Initiate graceful io stream shutdown
sourcepub fn resize_buf(&self, buf: &mut BytesVec)
pub fn resize_buf(&self, buf: &mut BytesVec)
Make sure buffer has enough free space
pub fn with_read_buf<'b, F, R>(&'b self, f: F) -> R
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for WriteBuf<'a>
impl<'a> !RefUnwindSafe for WriteBuf<'a>
impl<'a> !Send for WriteBuf<'a>
impl<'a> !Sync for WriteBuf<'a>
impl<'a> Unpin for WriteBuf<'a>
impl<'a> !UnwindSafe for WriteBuf<'a>
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