Skip to main content

Step

Enum Step 

Source
pub enum Step<B, O, E> {
    NeedInput {
        build: B,
        released: Amount,
    },
    Pending {
        build: B,
        released: Amount,
    },
    Ready {
        output: O,
        released: Amount,
    },
    Failed {
        build: B,
        error: E,
        released: Amount,
    },
}
Expand description

Linear successor of one cooperative construction turn.

Variants§

§

NeedInput

Fields

§build: B
§released: Amount
§

Pending

Fields

§build: B
§released: Amount
§

Ready

Fields

§output: O
§released: Amount
§

Failed

Fields

§build: B
§error: E
§released: Amount

Implementations§

Source§

impl<B, O, E> Step<B, O, E>

Source

pub fn map<C, T, F>( self, build: impl FnOnce(B) -> C, output: impl FnOnce(O) -> T, error: impl FnOnce(E) -> F, ) -> Step<C, T, F>

Auto Trait Implementations§

§

impl<B, O, E> Forget for Step<B, O, E>

§

impl<B, O, E> Freeze for Step<B, O, E>
where B: Freeze, O: Freeze, E: Freeze,

§

impl<B, O, E> RefUnwindSafe for Step<B, O, E>

§

impl<B, O, E> Send for Step<B, O, E>
where B: Send, O: Send, E: Send,

§

impl<B, O, E> Sync for Step<B, O, E>
where B: Sync, O: Sync, E: Sync,

§

impl<B, O, E> Unpin for Step<B, O, E>
where B: Unpin, O: Unpin, E: Unpin,

§

impl<B, O, E> UnsafeUnpin for Step<B, O, E>

§

impl<B, O, E> UnwindSafe for Step<B, O, E>
where B: UnwindSafe, O: UnwindSafe, E: UnwindSafe,

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.