pub enum Status {
Complete(usize),
Partial,
}
Expand description
The result of a successful decode pass.
Complete
is used when the buffer
contained the complete value. Partial
is used when decoding did not reach
the end of the expected value, but no invalid data was found.
Variants§
Complete(usize)
The completed result.
Contains the amount of bytes decoded.
Partial
A partial result.
Implementations§
Source§impl Status
impl Status
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Convenience method to check if status is complete.
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Convenience method to check if status is partial.
Trait Implementations§
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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