pub enum FeedResult<'a, T> {
Consumed,
OverFull(&'a [u8]),
DeserError(&'a [u8]),
Success {
data: T,
remaining: &'a [u8],
},
}Expand description
The result of feeding the accumulator.
Variants§
Consumed
Consumed all data, still pending.
OverFull(&'a [u8])
Buffer was filled. Contains remaining section of input, if any.
DeserError(&'a [u8])
Reached end of chunk, but deserialization failed. Contains remaining section of input, if any.
Success
Deserialization complete. Contains deserialized data and remaining section of input, if any.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for FeedResult<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for FeedResult<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FeedResult<'a, T>where
T: Send,
impl<'a, T> Sync for FeedResult<'a, T>where
T: Sync,
impl<'a, T> Unpin for FeedResult<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for FeedResult<'a, T>where
T: 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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.