#[repr(u16)]pub enum ErrorCode {
Show 15 variants
InvalidFrame = 100,
InvalidMessage = 101,
UnsupportedVersion = 102,
InvalidAddress = 200,
AddressNotFound = 201,
PatternError = 202,
Unauthorized = 300,
Forbidden = 301,
TokenExpired = 302,
RevisionConflict = 400,
LockHeld = 401,
InvalidValue = 402,
InternalError = 500,
ServiceUnavailable = 501,
Timeout = 502,
}Expand description
Protocol error codes (for ERROR messages)
Variants§
InvalidFrame = 100
InvalidMessage = 101
UnsupportedVersion = 102
InvalidAddress = 200
AddressNotFound = 201
PatternError = 202
Forbidden = 301
TokenExpired = 302
RevisionConflict = 400
LockHeld = 401
InvalidValue = 402
InternalError = 500
Timeout = 502
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