pub struct PartDecoder { /* private fields */ }Expand description
Decode opened chunks of one part in order, retaining only its unfinished
frame and previous record identity. The caller stages yielded records until the
whole object and signature have been checked. finish checks the declared
record count and byte length; frames crossing the part’s end are refused
before their allocation.
Implementations§
Source§impl PartDecoder
impl PartDecoder
Sourcepub fn new(header: PartHeader) -> Result<Self, Error>
pub fn new(header: PartHeader) -> Result<Self, Error>
Begin the stream described by the authenticated write header.
Auto Trait Implementations§
impl Freeze for PartDecoder
impl RefUnwindSafe for PartDecoder
impl Send for PartDecoder
impl Sync for PartDecoder
impl Unpin for PartDecoder
impl UnsafeUnpin for PartDecoder
impl UnwindSafe for PartDecoder
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