Enum Error
#[non_exhaustive]pub enum Error {
Show 15 variants
Socket(Error),
Lookup {
service: u32,
source: Error,
},
Connect {
service: u32,
source: Error,
},
ServiceNotFound {
service: u32,
version: u8,
},
InstanceNotFound {
service: u32,
version: u8,
instance_id: u32,
},
MessageTooLarge {
msg_id: u16,
len: usize,
},
TlvTooLarge {
msg_id: u16,
},
TooManyRequests,
Send {
msg_id: u16,
source: Error,
},
Lagged {
missed: u64,
},
Disconnected,
Watch(Error),
Timeout {
msg_id: u16,
},
Rejected {
msg_id: u16,
error: QmiError,
response: Message,
},
Decode {
msg_id: u16,
source: DecodeError,
},
}Expand description
Error returned by QMI operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Socket(Error)
Creating the IPC router socket failed.
Lookup
Looking up the service failed.
Connect
Connecting to the server failed, for example because the router recently removed it.
ServiceNotFound
No server provides the service.
InstanceNotFound
No server provides the requested instance of the service.
Fields
MessageTooLarge
The request doesn’t fit into a QMI message.
TlvTooLarge
A TLV value is longer than its u16 length field allows.
TooManyRequests
Every transaction ID is in use or reserved for a late response.
Send
Sending the request failed.
Lagged
A receiver of indications missed some because its buffer was full.
Disconnected
The connection of the client has stopped.
Connection::run returns the reason.
Watch(Error)
Watching for services failed.
Timeout
No response arrived in time.
Rejected
The service reported a failure in the response status.
Fields
Decode
Decoding a response or an indication failed.
Trait Implementations§
§impl Error for Error
impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()