pub enum ErrorCode {
BadArg = -1,
BufferTooSmall = -2,
InternalError = -3,
InvalidPacket = -4,
Unimplemented = -5,
InvalidState = -6,
AllocFail = -7,
Unknown = -8,
}
Expand description
Possible error codes.
Variants§
BadArg = -1
One or more invalid/out of range arguments.
BufferTooSmall = -2
Not enough bytes allocated in the buffer.
InternalError = -3
An internal error was detected.
InvalidPacket = -4
The compressed data passed is corrupted.
Unimplemented = -5
Invalid/unsupported request number.
InvalidState = -6
An encoder or decoder structure is invalid or already freed.
AllocFail = -7
Memory allocation has failed.
Unknown = -8
An unknown failure.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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