Skip to main content

Failure

Enum Failure 

Source
pub enum Failure<S, M, P, C, R> {
    Allocation(Error),
    Setup(S),
    Layout(Layout),
    Mapping(Map<M>),
    Primary(P),
    Cleanup(C),
    Release(R),
}
Expand description

Exact startup failure and every owner whose cleanup remains incomplete.

Variants§

§

Allocation(Error)

§

Setup(S)

§

Layout(Layout)

§

Mapping(Map<M>)

§

Primary(P)

§

Cleanup(C)

§

Release(R)

Trait Implementations§

Source§

impl<S, M, P, C, R, A> From<Error<S, M, A>> for Failure<S, M, P, C, R>
where C: From<A>,

Source§

fn from(error: Error<S, M, A>) -> Self

Converts to this type from the input type.
Source§

impl<S, M, P, C, R> From<Result<P, C>> for Failure<S, M, P, C, R>

Source§

fn from(result: Result<P, C>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<S, M, P, C, R> Freeze for Failure<S, M, P, C, R>
where S: Freeze, Map<M>: Freeze, P: Freeze, C: Freeze, R: Freeze,

§

impl<S, M, P, C, R> RefUnwindSafe for Failure<S, M, P, C, R>

§

impl<S, M, P, C, R> Send for Failure<S, M, P, C, R>
where S: Send, Map<M>: Send, P: Send, C: Send, R: Send,

§

impl<S, M, P, C, R> Sync for Failure<S, M, P, C, R>
where S: Sync, Map<M>: Sync, P: Sync, C: Sync, R: Sync,

§

impl<S, M, P, C, R> Unpin for Failure<S, M, P, C, R>
where S: Unpin, Map<M>: Unpin, P: Unpin, C: Unpin, R: Unpin,

§

impl<S, M, P, C, R> UnsafeUnpin for Failure<S, M, P, C, R>

§

impl<S, M, P, C, R> UnwindSafe for Failure<S, M, P, C, R>

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