pub enum ProcessingResult<T, U> {
Complete {
result: T,
},
NeedsMoreInput {
size_hint: usize,
fallback: U,
},
}Expand description
This type represents the return value of a function that reads input from a bitstream. The
variant Complete indicates that the operation was completed successfully, and its return
value is available. The variant NeedsMoreInput indicates that more input is needed, and the
function should be called again. This variant comes with a size_hint, representing an
estimate of the number of additional bytes needed, and a fallback, representing additional
information that might be needed to call the function again (i.e. because it takes a decoder
object by value).
Variants§
Trait Implementations§
impl<T, U> StructuralPartialEq for ProcessingResult<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for ProcessingResult<T, U>
impl<T, U> RefUnwindSafe for ProcessingResult<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ProcessingResult<T, U>
impl<T, U> Sync for ProcessingResult<T, U>
impl<T, U> Unpin for ProcessingResult<T, U>
impl<T, U> UnsafeUnpin for ProcessingResult<T, U>where
T: UnsafeUnpin,
U: UnsafeUnpin,
impl<T, U> UnwindSafe for ProcessingResult<T, U>where
T: UnwindSafe,
U: 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