Skip to main content

Failure

Enum Failure 

Source
pub enum Failure {
    Kernel {
        operation: IoOperation,
        cause: Kernel,
    },
    Mapping(Mapping),
    RingLayout(Layout),
    Capability(Capability),
    Probe(ProbeError),
}

Variants§

§

Kernel

Fields

§operation: IoOperation
§cause: Kernel
§

Mapping(Mapping)

§

RingLayout(Layout)

§

Capability(Capability)

§

Probe(ProbeError)

Trait Implementations§

Source§

impl Clone for Failure

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Failure

Source§

impl Debug for Failure

Source§

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

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

impl Eq for Failure

Source§

impl From<(Probe, Send)> for Failure

Source§

fn from((probe, error): (Probe, Send)) -> Self

Converts to this type from the input type.
Source§

impl<O, E> From<Cause<Probe, O, E>> for Failure
where <Backend as Source<Host<Backend>>>::Backend: Observe<Observation = O>, Kernel: From<E>,

Source§

fn from(cause: Cause<Probe, O, E>) -> Self

Converts to this type from the input type.
Source§

impl<S, M> From<Cause<S, M>> for Failure
where Kernel: From<S>, Mapping: From<Map<M>>,

Source§

fn from(cause: Cause<S, M>) -> Self

Converts to this type from the input type.
Source§

impl From<Check<Probe>> for Failure

Source§

fn from(check: Check<Probe>) -> Self

Converts to this type from the input type.
Source§

impl<O, E, I, L, C> From<Checked<Probe, O, E, I, L, C, ProbeError>> for Failure
where <Backend as Source<Host<Backend>>>::Backend: Observe<Observation = O>, Kernel: From<E>, Selection: From<(I, Buffers)>, Len: From<L>, NonZero: From<C>,

Source§

fn from(cause: Checked<Probe, O, E, I, L, C, ProbeError>) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Failure

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.
Source§

impl<S, W> From<Failure<S, W>> for Failure
where Mapping: From<S>, Failure: From<W>,

Source§

fn from(failure: Failure<S, W>) -> Self

Converts to this type from the input type.
Source§

impl From<Failure> for CreateError

Source§

fn from(error: Failure) -> Self

Converts to this type from the input type.
Source§

impl<E> From<Install<E>> for Failure
where Kernel: From<E>,

Source§

fn from(failure: Install<E>) -> Self

Converts to this type from the input type.
Source§

impl<M, R, B> From<Primary<M, R, B>> for Failure
where Self: From<M>, Kernel: From<R> + From<B>,

Source§

fn from(primary: Primary<M, R, B>) -> Self

Converts to this type from the input type.
Source§

impl<R, U> From<Primary<R, U>> for Failure
where Kernel: From<R> + From<U>,

Source§

fn from(primary: Primary<R, U>) -> Self

Converts to this type from the input type.
Source§

impl<C, F, R> From<Rejection<C, F, R>> for Failure
where Kernel: From<C> + From<F> + From<R>,

Source§

fn from(cause: Rejection<C, F, R>) -> Self

Converts to this type from the input type.
Source§

impl From<Syscall<Probe, Creation>> for Failure

Source§

fn from(cause: Syscall<Probe, Creation>) -> Self

Converts to this type from the input type.
Source§

impl<E> From<Syscall<Probe, E>> for Failure
where Kernel: From<E>,

Source§

fn from(cause: Syscall<Probe, E>) -> Self

Converts to this type from the input type.
Source§

impl<C, E> From<Unsupported<C, E>> for Failure
where C: Into<<Backend as Source>::Code>, Kernel: From<E>,

Source§

fn from(error: Unsupported<C, E>) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Failure

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Failure

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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, !>

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.