pub enum UnpackError<T> {
NoIdMatch(T),
NoCast(Box<dyn Any + Send>),
DeserError(SerError),
}Expand description
An error that is thrown when deserialisation of a NetMessage is attempted.
Variants§
NoIdMatch(T)
ser_id did not match the given Deserialiser.
NoCast(Box<dyn Any + Send>)
Box<dyn Any>::downcast() failed.
DeserError(SerError)
An error occurred during deserialisation of the buffer.
This can not contain T, as the buffer may have been corrupted during the failed attempt.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for UnpackError<T>
impl<T> !RefUnwindSafe for UnpackError<T>
impl<T> !Send for UnpackError<T>
impl<T> !Sync for UnpackError<T>
impl<T> Unpin for UnpackError<T>where
T: Unpin,
impl<T> UnsafeUnpin for UnpackError<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for UnpackError<T>
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