enum State<R, T: Tag> {
Body {
reader: Option<R>,
consumed: u64,
user_len: NonZeroU64,
},
ReadTrailer(ReadTrailer<R, T>),
ReleaseTrailer {
consumed: u8,
data: Trailer,
},
}
Variants§
Body
Full 8-byte blocks are being read and released to the caller. NOTE: The final 8-byte block is always part of the trailer.
Fields
§
user_len: NonZeroU64
The total length of all user data contained in both the body and trailer.
ReadTrailer(ReadTrailer<R, T>)
The trailer is in the process of being read.
ReleaseTrailer
The trailer has been fully read and validated, and data can now be released to the caller.
Trait Implementations§
Auto Trait Implementations§
impl<R, T> Freeze for State<R, T>
impl<R, T> RefUnwindSafe for State<R, T>
impl<R, T> Send for State<R, T>
impl<R, T> Sync for State<R, T>
impl<R, T> Unpin for State<R, T>where
R: Unpin,
impl<R, T> UnwindSafe for State<R, T>
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