Enum blaze_pk::PacketError
source · pub enum PacketError {
CodecError(CodecError),
IO(Error),
}
Expand description
Enum for errors that could occur when dealing with packets (encoding and decoding)
Variants
CodecError(CodecError)
IO(Error)
Trait Implementations
sourceimpl Debug for PacketError
impl Debug for PacketError
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 PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl !UnwindSafe for PacketError
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