pub enum Failure {
Show 27 variants
Qmi(Error),
Uim(Error),
Wds(Error),
Wms(Error),
Nas(Error),
Sleep(Error),
Command(CommandError),
Runtime(Error),
MissingServices {
names: Vec<&'static str>,
},
Decode {
msg_id: u16,
source: DecodeError,
},
UnexpectedProbe {
error: QmiError,
},
ModelMismatch {
probed: Model,
expected: Model,
},
Missing {
field: &'static str,
},
InvalidId {
field: &'static str,
value: String,
source: DigitsError,
},
NoCard,
NoSms {
timeout: Duration,
},
Read {
path: &'static str,
source: Error,
},
WakeupSource {
step: &'static str,
state: &'static str,
expected: &'static str,
},
AutosleepStillOn,
Interfaces(Error),
AddressMissing {
interface: &'static str,
expected: Ipv4Addr,
timeout: Duration,
},
AddressStays {
interface: &'static str,
timeout: Duration,
},
Ping {
status: ExitStatus,
},
Exit {
command: &'static str,
status: ExitStatus,
},
Signal {
program: &'static str,
source: Error,
},
Process {
program: &'static str,
expected: &'static str,
timeout: Duration,
},
Sms {
cases: Vec<&'static str>,
},
}Expand description
Why a test failed.
The debug output is the error chain, which libtest prints for a failed test.
Variants§
Qmi(Error)
A QMI request failed.
Uim(Error)
A UIM request failed.
Wds(Error)
A WDS request failed.
Wms(Error)
A WMS request failed.
Nas(Error)
A NAS request failed.
Sleep(Error)
A wake lock or autosleep operation failed.
Command(CommandError)
A command failed to run.
Runtime(Error)
The runtime for a restore failed to start.
MissingServices
QMI services that the crates use are missing.
Decode
A response failed to decode.
UnexpectedProbe
ql_manager answered the model probe with an unexpected error.
ModelMismatch
The probe found another model than the one in the project version file.
Missing
A response lacks a value.
InvalidId
An IMEI, ICCID or IMSI is invalid.
Fields
source: DigitsErrorWhat is wrong with it.
NoCard
No SIM card is present.
NoSms
No SMS arrived in time.
Read
A file failed to read.
WakeupSource
The kernel’s wakeup source is in the wrong state after a step.
Fields
AutosleepStillOn
Autosleep is still on after the wake lock was dropped.
Interfaces(Error)
The interface addresses failed to read.
AddressMissing
An interface didn’t get its address in time.
Fields
AddressStays
An interface kept an IPv4 address.
Ping
Ping failed.
Fields
status: ExitStatusExit status of ping.
Exit
A command exited with an error.
Signal
A signal failed to send.
Process
A process didn’t start or stop in time.
Fields
Sms
SMS arrived wrong or not at all.
Trait Implementations§
Source§impl Error for Failure
impl Error for Failure
Source§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()