Skip to main content

RunError

Enum RunError 

Source
pub enum RunError<'owner, S, I, O, T, Q = (), E = Error> {
    Create(Rejected<Error<'owner>, O>),
    Storage(Rejected<S, O>),
    Failure(Failure<'owner, I, T, E>),
    Close(Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, Q>),
}

Variants§

§

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

§

Storage(Rejected<S, O>)

§

Failure(Failure<'owner, I, T, E>)

§

Close(Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, Q>)

Implementations§

Source§

impl<'owner, S, I, O, T, Q, E> RunError<'owner, S, I, O, T, Q, E>

Source

pub fn cause(&self) -> Run<'_, S, I, E>

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

Source

pub fn kind( &self, ) -> Kind<'_, S, &'_ Result<T, Failure<'owner, I, T, E>>, Failure<'owner, I, T, E>>

Trait Implementations§

Source§

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

Source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'owner, S, I, O, T, Q = (), E = Error> !Send for RunError<'owner, S, I, O, T, Q, E>

§

impl<'owner, S, I, O, T, Q = (), E = Error> !Sync for RunError<'owner, S, I, O, T, Q, E>

§

impl<'owner, S, I, O, T, Q = (), E = Error> !UnwindSafe for RunError<'owner, S, I, O, T, Q, E>

§

impl<'owner, S, I, O, T, Q, E> Forget for RunError<'owner, S, I, O, T, Q, E>

§

impl<'owner, S, I, O, T, Q, E> Freeze for RunError<'owner, S, I, O, T, Q, E>
where Rejected<Error<'owner>, O>: Freeze, Rejected<S, O>: Freeze, Failure<'owner, I, T, E>: Freeze, Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, Q>: Freeze,

§

impl<'owner, S, I, O, T, Q, E> Move for RunError<'owner, S, I, O, T, Q, E>

§

impl<'owner, S, I, O, T, Q, E> RefUnwindSafe for RunError<'owner, S, I, O, T, Q, E>
where Rejected<Error<'owner>, O>: RefUnwindSafe, Rejected<S, O>: RefUnwindSafe, Failure<'owner, I, T, E>: RefUnwindSafe, Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, Q>: RefUnwindSafe,

§

impl<'owner, S, I, O, T, Q, E> Unpin for RunError<'owner, S, I, O, T, Q, E>
where Rejected<Error<'owner>, O>: Unpin, Rejected<S, O>: Unpin, Failure<'owner, I, T, E>: Unpin, Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, Q>: Unpin,

§

impl<'owner, S, I, O, T, Q, E> UnsafeUnpin for RunError<'owner, S, I, O, T, Q, E>
where Rejected<Error<'owner>, O>: UnsafeUnpin, Rejected<S, O>: UnsafeUnpin, Failure<'owner, I, T, E>: UnsafeUnpin, Closing<'owner, Rejected<S, O>, Result<T, Failure<'owner, I, T, E>>, 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.