pub enum ProcessResult<R> {
ReadMore(usize),
Metadata(Metadata),
Record(R),
Err(Error),
}Expand description
The decoding result from a call to DbnFsm::process(), DbnFsm::process_all(),
and DbnFsm::process_many().
Variants§
ReadMore(usize)
More data should be read into space().
Metadata(Metadata)
Decoded the metadata header.
Record(R)
Decoded a record in the case of DbnFsm::process(), which can be accessed
through DbnFsm::last_record(). Decoded one or more records in the case of
DbnFsm::process_all() or DbnFsm::process_many().
Err(Error)
Failed to decode.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for ProcessResult<R>where
R: Freeze,
impl<R> !RefUnwindSafe for ProcessResult<R>
impl<R> Send for ProcessResult<R>where
R: Send,
impl<R> Sync for ProcessResult<R>where
R: Sync,
impl<R> Unpin for ProcessResult<R>where
R: Unpin,
impl<R> UnsafeUnpin for ProcessResult<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for ProcessResult<R>
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