pub struct Framed<S> { /* private fields */ }Expand description
Bounded framing with reusable scratch storage. The first four bytes are the encoded body length in little endian, not a native Rust struct layout. A framing/I/O error poisons this codec: reconnect instead of retrying bytes.
Implementations§
Source§impl<S: Read + Write> Framed<S>
impl<S: Read + Write> Framed<S>
Auto Trait Implementations§
impl<S> Freeze for Framed<S>where
S: Freeze,
impl<S> RefUnwindSafe for Framed<S>where
S: RefUnwindSafe,
impl<S> Send for Framed<S>where
S: Send,
impl<S> Sync for Framed<S>where
S: Sync,
impl<S> Unpin for Framed<S>where
S: Unpin,
impl<S> UnsafeUnpin for Framed<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Framed<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