Enum blaze_pk::CodecError
source · [−]pub enum CodecError {
MissingField(&'static str),
DecodeFail(&'static str, Box<CodecError>),
UnexpectedType(ValueType, ValueType),
UnexpectedFieldType(&'static str, ValueType, ValueType),
NotEnoughBytes(usize, usize, usize),
UnknownError,
DecodedTwice,
}
Expand description
Errors for when decoding packet structures
Variants
MissingField(&'static str)
DecodeFail(&'static str, Box<CodecError>)
UnexpectedType(ValueType, ValueType)
UnexpectedFieldType(&'static str, ValueType, ValueType)
NotEnoughBytes(usize, usize, usize)
UnknownError
DecodedTwice
Trait Implementations
sourceimpl Debug for CodecError
impl Debug for CodecError
sourceimpl From<CodecError> for PacketError
impl From<CodecError> for PacketError
sourcefn from(err: CodecError) -> Self
fn from(err: CodecError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnwindSafe for CodecError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more