Skip to main content

Error

Enum Error 

Source
pub enum Error<T, E = Infallible> {
    Drive(Error),
    Quiesce {
        output: T,
        drive: Error,
        disarm: Option<Errno>,
    },
    Install {
        cause: InstallError<E>,
        disarm: Option<Errno>,
    },
}
Expand description

Application output and the failure observed while releasing its session.

Variants§

§

Drive(Error)

§

Quiesce

Fields

§output: T
§drive: Error
§disarm: Option<Errno>
§

Install

Fields

§cause: InstallError<E>
§disarm: Option<Errno>

Implementations§

Source§

impl<T, E> Error<T, E>

Source

pub fn output(&self) -> Option<&T>

Borrows the application result retained through a later session failure.

Source

pub fn cause(&self) -> Cause<'_, E>

Borrows the failure without moving or formatting application output.

Trait Implementations§

Source§

impl<T: Debug, E: Debug> Debug for Error<T, E>

Source§

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

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

impl<T, X> From<Error<!, T, X>> for Error<T, X>

Source§

fn from(error: Error<Infallible, T, X>) -> Self

Converts to this type from the input type.
Source§

impl<T, E> From<Error> for Error<T, E>

Source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T, E = !> !Send for Error<T, E>

§

impl<T, E = !> !Sync for Error<T, E>

§

impl<T, E> Forget for Error<T, E>

§

impl<T, E> Freeze for Error<T, E>

§

impl<T, E> Move for Error<T, E>

§

impl<T, E> RefUnwindSafe for Error<T, E>

§

impl<T, E> Unpin for Error<T, E>

§

impl<T, E> UnsafeUnpin for Error<T, E>

§

impl<T, E> UnwindSafe for Error<T, E>

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<L, R> Convert<Either<L, R>, 1> for L

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
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.