pub enum BufDecoderResult<T> {
Empty,
Partial,
Ignored,
Decoded(T),
}Expand description
Buffer decoding result.
Variants§
Empty
Input buffer consumed, nothing decoded.
Partial
Input buffer consumed, message decoding in progress.
Ignored
Part of the input was ignored, there is more data.
Decoded(T)
Part of the input buffer is decoded, there may be more data.
Trait Implementations§
Source§impl<T: Clone> Clone for BufDecoderResult<T>
impl<T: Clone> Clone for BufDecoderResult<T>
Source§fn clone(&self) -> BufDecoderResult<T>
fn clone(&self) -> BufDecoderResult<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for BufDecoderResult<T>
Source§impl<T: Debug> Debug for BufDecoderResult<T>
impl<T: Debug> Debug for BufDecoderResult<T>
impl<T: Eq> Eq for BufDecoderResult<T>
Source§impl<T: PartialEq> PartialEq for BufDecoderResult<T>
impl<T: PartialEq> PartialEq for BufDecoderResult<T>
impl<T: PartialEq> StructuralPartialEq for BufDecoderResult<T>
Auto Trait Implementations§
impl<T> Freeze for BufDecoderResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for BufDecoderResult<T>where
T: RefUnwindSafe,
impl<T> Send for BufDecoderResult<T>where
T: Send,
impl<T> Sync for BufDecoderResult<T>where
T: Sync,
impl<T> Unpin for BufDecoderResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for BufDecoderResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for BufDecoderResult<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