Skip to main content

EnterError

Enum EnterError 

Source
pub enum EnterError<'owner, S, O, T, Q = ()> {
    Runtime(Rejected<Error<'owner>, O>),
    Storage(Rejected<S, O>),
    Close(Closing<'owner, Rejected<S, O>, T, Q>),
}
Expand description

Driver entry failure retaining the rejected operation or its closing owner.

Variants§

§

Runtime(Rejected<Error<'owner>, O>)

§

Storage(Rejected<S, O>)

§

Close(Closing<'owner, Rejected<S, O>, T, Q>)

Implementations§

Source§

impl<'owner, S, O, T, Q> EnterError<'owner, S, O, T, Q>

Source

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

Borrows completed application output while this error retains its teardown owner.

Source

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

Borrows every failure while preserving output, operation, and retry ownership.

Source

pub fn kind(&self) -> Kind<'_, S, &T>

Trait Implementations§

Source§

impl<'owner, S, I, O, T, Q> From<EnterError<'owner, S, O, Result<T, Failure<'owner, I, T>>, Q>> for RunError<'owner, S, I, O, T, Q>

Source§

fn from( error: EnterError<'owner, S, O, Result<T, Failure<'owner, I, T>>, Q>, ) -> Self

Converts to this type from the input type.
Source§

impl<'owner, S, O, T, Q> From<Error<'owner, Rejected<S, O>, T, Q>> for EnterError<'owner, S, O, T, Q>

Source§

fn from(error: Error<'owner, Rejected<S, O>, T, Q>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'owner, S, O, T, Q = ()> !Send for EnterError<'owner, S, O, T, Q>

§

impl<'owner, S, O, T, Q = ()> !Sync for EnterError<'owner, S, O, T, Q>

§

impl<'owner, S, O, T, Q = ()> !UnwindSafe for EnterError<'owner, S, O, T, Q>

§

impl<'owner, S, O, T, Q> Forget for EnterError<'owner, S, O, T, Q>

§

impl<'owner, S, O, T, Q> Freeze for EnterError<'owner, S, O, T, Q>
where Rejected<Error<'owner>, O>: Freeze, Rejected<S, O>: Freeze, Closing<'owner, Rejected<S, O>, T, Q>: Freeze,

§

impl<'owner, S, O, T, Q> RefUnwindSafe for EnterError<'owner, S, O, T, Q>
where Rejected<Error<'owner>, O>: RefUnwindSafe, Rejected<S, O>: RefUnwindSafe, Closing<'owner, Rejected<S, O>, T, Q>: RefUnwindSafe,

§

impl<'owner, S, O, T, Q> Unpin for EnterError<'owner, S, O, T, Q>
where Rejected<Error<'owner>, O>: Unpin, Rejected<S, O>: Unpin, Closing<'owner, Rejected<S, O>, T, Q>: Unpin,

§

impl<'owner, S, O, T, Q> UnsafeUnpin for EnterError<'owner, S, O, T, Q>
where Rejected<Error<'owner>, O>: UnsafeUnpin, Rejected<S, O>: UnsafeUnpin, Closing<'owner, Rejected<S, O>, T, Q>: UnsafeUnpin,

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.