pub struct FrameWriter<W, const N: usize> { /* private fields */ }Expand description
Writes frames of exactly N bytes to an AsyncWrite.
A frame is accepted as a whole and a partially written frame is kept inside, so unlike
AsyncWriteExt::write_all writing a frame can be
cancelled and resumed.
A frame that is not fully written yet is lost when this value is dropped, call
flush to avoid it.
Implementations§
Source§impl<W: AsyncWrite, const N: usize> FrameWriter<W, N>
impl<W: AsyncWrite, const N: usize> FrameWriter<W, N>
Auto Trait Implementations§
impl<W, const N: usize> Forget for FrameWriter<W, N>
impl<W, const N: usize> Freeze for FrameWriter<W, N>
impl<W, const N: usize> Move for FrameWriter<W, N>
impl<W, const N: usize> RefUnwindSafe for FrameWriter<W, N>
impl<W, const N: usize> Send for FrameWriter<W, N>
impl<W, const N: usize> Sync for FrameWriter<W, N>
impl<W, const N: usize> Unpin for FrameWriter<W, N>
impl<W, const N: usize> UnsafeUnpin for FrameWriter<W, N>
impl<W, const N: usize> UnwindSafe for FrameWriter<W, N>
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