pub enum DecodeResult<T, E> {
Ok(T),
Err(E),
UnexpectedEnd,
}
Expand description
The Result of a Decode::decode
call
Variants§
Ok(T)
Item decoded successfully.
Err(E)
A full frame was found, but an error was encountered when decoding it.
UnexpectedEnd
Not enough data to decode a full frame yet, more needs to be read.
Trait Implementations§
Source§impl<T, E> From<Result<T, E>> for DecodeResult<T, E>
impl<T, E> From<Result<T, E>> for DecodeResult<T, E>
Source§fn from(res: Result<T, E>) -> DecodeResult<T, E>
fn from(res: Result<T, E>) -> DecodeResult<T, E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, E> Freeze for DecodeResult<T, E>
impl<T, E> RefUnwindSafe for DecodeResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for DecodeResult<T, E>
impl<T, E> Sync for DecodeResult<T, E>
impl<T, E> Unpin for DecodeResult<T, E>
impl<T, E> UnwindSafe for DecodeResult<T, E>where
T: UnwindSafe,
E: 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