Skip to main content

Drive

Enum Drive 

Source
pub enum Drive<'d, B: Build<'d>, O: Origin = Stored> {
    NeedInput(Stream<'d, B, O>),
    Pending(Stream<'d, B, O>),
    Ready(Ready<'d, B, O>),
    Failed {
        stream: Stream<'d, B, O>,
        error: Error<B::StepError>,
    },
    Rejected {
        stream: Stream<'d, B, O>,
        error: Error,
    },
}
Expand description

The exact owner produced by one cooperative construction and admission turn.

Variants§

§

NeedInput(Stream<'d, B, O>)

§

Pending(Stream<'d, B, O>)

§

Ready(Ready<'d, B, O>)

§

Failed

Fields

§stream: Stream<'d, B, O>
§error: Error<B::StepError>
§

Rejected

Fields

§stream: Stream<'d, B, O>
§error: Error

Auto Trait Implementations§

§

impl<'d, B, O> Forget for Drive<'d, B, O>

§

impl<'d, B, O> Freeze for Drive<'d, B, O>
where Stream<'d, B, O>: Freeze, Ready<'d, B, O>: Freeze, Error<<B as Build<'d>>::StepError>: Freeze,

§

impl<'d, B, O> RefUnwindSafe for Drive<'d, B, O>
where Stream<'d, B, O>: RefUnwindSafe, Ready<'d, B, O>: RefUnwindSafe, Error<<B as Build<'d>>::StepError>: RefUnwindSafe,

§

impl<'d, B, O> Send for Drive<'d, B, O>
where Stream<'d, B, O>: Send, Ready<'d, B, O>: Send, Error<<B as Build<'d>>::StepError>: Send,

§

impl<'d, B, O> Sync for Drive<'d, B, O>
where Stream<'d, B, O>: Sync, Ready<'d, B, O>: Sync, Error<<B as Build<'d>>::StepError>: Sync,

§

impl<'d, B, O> Unpin for Drive<'d, B, O>
where Stream<'d, B, O>: Unpin, Ready<'d, B, O>: Unpin, Error<<B as Build<'d>>::StepError>: Unpin,

§

impl<'d, B, O> UnsafeUnpin for Drive<'d, B, O>
where Stream<'d, B, O>: UnsafeUnpin, Ready<'d, B, O>: UnsafeUnpin, Error<<B as Build<'d>>::StepError>: UnsafeUnpin,

§

impl<'d, B, O> UnwindSafe for Drive<'d, B, O>
where Stream<'d, B, O>: UnwindSafe, Ready<'d, B, O>: UnwindSafe, Error<<B as Build<'d>>::StepError>: 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.