enum State {
Length {
buf: [u8; 8],
filled: u8,
},
Chunk {
remaining: NonZeroU64,
},
Eof,
}
Expand description
State machine for NixFramedReader
.
We read length-prefixed chunks until we receive a zero-sized payload indicating EOF. Other than the zero-sized terminating chunk, chunk boundaries are not considered meaningful. Lengths are 64-bit little endian values on the wire.
Variants§
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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