Skip to main content

Failure

Enum Failure 

Source
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.

Fields

§names: Vec<&'static str>

Names of the missing services.

§

Decode

A response failed to decode.

Fields

§msg_id: u16

ID of the message.

§source: DecodeError

Underlying error.

§

UnexpectedProbe

ql_manager answered the model probe with an unexpected error.

Fields

§error: QmiError

The error in the response.

§

ModelMismatch

The probe found another model than the one in the project version file.

Fields

§probed: Model

Model from the probe.

§expected: Model

Model from the project version file.

§

Missing

A response lacks a value.

Fields

§field: &'static str

Name of the value.

§

InvalidId

An IMEI, ICCID or IMSI is invalid.

Fields

§field: &'static str

Name of the value.

§value: String

The value.

§source: DigitsError

What is wrong with it.

§

NoCard

No SIM card is present.

§

NoSms

No SMS arrived in time.

Fields

§timeout: Duration

How long the test waited.

§

Read

A file failed to read.

Fields

§path: &'static str

Path of the file.

§source: Error

Underlying error.

§

WakeupSource

The kernel’s wakeup source is in the wrong state after a step.

Fields

§step: &'static str

The step of the test.

§state: &'static str

State of the wakeup source.

§expected: &'static str

Expected state.

§

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

§interface: &'static str

Name of the interface.

§expected: Ipv4Addr

Expected address.

§timeout: Duration

How long the test waited.

§

AddressStays

An interface kept an IPv4 address.

Fields

§interface: &'static str

Name of the interface.

§timeout: Duration

How long the test waited.

§

Ping

Ping failed.

Fields

§status: ExitStatus

Exit status of ping.

§

Exit

A command exited with an error.

Fields

§command: &'static str

The program.

§status: ExitStatus

Exit status of the program.

§

Signal

A signal failed to send.

Fields

§program: &'static str

Name of the program.

§source: Error

Underlying error.

§

Process

A process didn’t start or stop in time.

Fields

§program: &'static str

Name of the program.

§expected: &'static str

The state that the test waited for.

§timeout: Duration

How long the test waited.

§

Sms

SMS arrived wrong or not at all.

Fields

§cases: Vec<&'static str>

Keys of the failed cases.

Trait Implementations§

Source§

impl Debug for Failure

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Failure

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Failure

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CommandError> for Failure

Source§

fn from(source: CommandError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more