pub enum UlcpError {
Io(Error),
Disconnected,
Protocol(&'static str),
Status(Status),
UnexpectedReset(Status),
FrameTooLarge(usize),
Timeout,
Transport(String),
AdministrativeAttach,
}Variants§
Io(Error)
Disconnected
The stream reached end-of-file; the device link is gone.
Protocol(&'static str)
The device violated the ULCP.
Status(Status)
The device reported a failure status for a command.
UnexpectedReset(Status)
The device reset outside of an initialization handshake, losing its configuration. The radio must be re-initialized.
FrameTooLarge(usize)
The frame exceeds the device’s advertised MTU.
Timeout
The device did not answer a command in time.
Transport(String)
A non-stream transport failed.
AdministrativeAttach
A host-domain write was attempted on an administrative handle.
Administering a device configures the device; it does not claim
the device (see AttachMode).
Trait Implementations§
Source§impl Error for UlcpError
impl Error for UlcpError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for UlcpError
impl !RefUnwindSafe for UlcpError
impl Send for UlcpError
impl Sync for UlcpError
impl Unpin for UlcpError
impl !UnwindSafe for UlcpError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more