pub enum ErrorCode {
InvalidCmd = 1,
InvalidPar = 2,
InvalidLen = 3,
InvalidSeq = 4,
MsgTimeout = 5,
ChannelBusy = 6,
LockRequired = 10,
InvalidChannel = 11,
Other = 127,
}
Expand description
These are used in Command::Err only as response when an error is encountered
Variants§
InvalidCmd = 1
The command in the request is invalid
InvalidPar = 2
The parameter(s) in the request is invalid
InvalidLen = 3
The length field (BCNT) is invalid for the request
InvalidSeq = 4
The sequence does not match expected value
MsgTimeout = 5
The message has timed out
ChannelBusy = 6
The device is busy for the requesting channel. The client SHOULD retry the request after a short delay. Note that the client may abort the transaction if the command is no longer relevant.
LockRequired = 10
Command requires channel lock
InvalidChannel = 11
CID is not valid.
Other = 127
Unspecified error
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