[][src]Enum streamline::RevertProgress

pub enum RevertProgress<S, E, C> where
    S: State<Context = C, Error = E>, 
{ Reverting { step: S, source: Option<Arc<E>>, }, Reverted { source: Option<Arc<E>>, }, Failure { source: Option<Arc<E>>, error: E, }, }

An internal state machine that represents the process of reverting previous progress.

Variants

Reverting

An in-flight State reversion

Fields of Reverting

step: S

the state variant in the process of being reverted

source: Option<Arc<E>>

the original error that triggered the reversion process, if one exists

Reverted

The final state of a successful reversion

Fields of Reverted

source: Option<Arc<E>>

the original error that triggered the reversion process

Failure

The final state of a failed reversion

Fields of Failure

source: Option<Arc<E>>

the original error that triggered the reversion process

error: E

the error that caused the reversion process to fail

Trait Implementations

impl<S: Debug, E: Debug, C: Debug> Debug for RevertProgress<S, E, C> where
    S: State<Context = C, Error = E>, 
[src]

impl<S: PartialEq, E: PartialEq, C: PartialEq> PartialEq<RevertProgress<S, E, C>> for RevertProgress<S, E, C> where
    S: State<Context = C, Error = E>, 
[src]

impl<S, E, C> StructuralPartialEq for RevertProgress<S, E, C> where
    S: State<Context = C, Error = E>, 
[src]

Auto Trait Implementations

impl<S, E, C> RefUnwindSafe for RevertProgress<S, E, C> where
    E: RefUnwindSafe,
    S: RefUnwindSafe

impl<S, E, C> Send for RevertProgress<S, E, C> where
    E: Send + Sync,
    S: Send

impl<S, E, C> Sync for RevertProgress<S, E, C> where
    E: Send + Sync,
    S: Sync

impl<S, E, C> Unpin for RevertProgress<S, E, C> where
    E: Unpin,
    S: Unpin

impl<S, E, C> UnwindSafe for RevertProgress<S, E, C> where
    E: RefUnwindSafe + UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.