pub enum EzspError {
Link(LinkError),
Down(String),
NoReply,
Timeout(u16),
Header(HeaderError),
Decode(DecodeError),
InvalidCommand {
frame_id: u16,
reason: u8,
},
Status {
frame_id: u16,
status: Status,
},
Unexpected(Box<Response>),
Unsupported {
protocol: u8,
stack_version: u16,
},
StackType(u8),
}Expand description
Client errors.
Variants§
Link(LinkError)
The ASH link failed.
Down(String)
The link went down (NCP reset, timeouts, port closed).
NoReply
No RSTACK: nothing that speaks ASH is on the port.
Timeout(u16)
No response to a command in time.
Header(HeaderError)
A frame header did not parse.
Decode(DecodeError)
A response did not parse.
InvalidCommand
The NCP rejected the command as invalid.
Status
The command ran and returned a failure status.
Unexpected(Box<Response>)
The NCP answered with a response that does not fit the command.
Unsupported
The NCP’s protocol version is outside what this crate speaks.
StackType(u8)
The NCP is not a Zigbee stack.
Trait Implementations§
Source§impl Error for EzspError
impl Error for EzspError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeError> for EzspError
impl From<DecodeError> for EzspError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for EzspError
impl From<HeaderError> for EzspError
Source§fn from(source: HeaderError) -> Self
fn from(source: HeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EzspError
impl RefUnwindSafe for EzspError
impl Send for EzspError
impl Sync for EzspError
impl Unpin for EzspError
impl UnsafeUnpin for EzspError
impl UnwindSafe for EzspError
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