Skip to main content

Push

Enum Push 

Source
pub enum Push<D, B, E> {
    Accepted(B),
    Discarded {
        build: B,
        input: D,
    },
    Refused {
        build: B,
        input: D,
        error: Error,
    },
    Failed {
        build: B,
        error: Error,
    },
    Rejected {
        build: B,
        error: E,
    },
}
Expand description

Input ownership after one incremental stream transition.

Variants§

§

Accepted(B)

§

Discarded

Fields

§build: B
§input: D
§

Refused

Fields

§build: B
§input: D
§error: Error
§

Failed

Fields

§build: B
§error: Error
§

Rejected

Fields

§build: B
§error: E

Implementations§

Source§

impl<D, B, E> Push<D, B, E>

Source

pub fn map<C>(self, map: impl FnOnce(B) -> C) -> Push<D, C, E>

Changes only the builder owner, retaining the exact input and failure.

Auto Trait Implementations§

§

impl<D, B, E> Forget for Push<D, B, E>

§

impl<D, B, E> Freeze for Push<D, B, E>
where B: Freeze, D: Freeze, E: Freeze,

§

impl<D, B, E> RefUnwindSafe for Push<D, B, E>

§

impl<D, B, E> Send for Push<D, B, E>
where B: Send, D: Send, E: Send,

§

impl<D, B, E> Sync for Push<D, B, E>
where B: Sync, D: Sync, E: Sync,

§

impl<D, B, E> Unpin for Push<D, B, E>
where B: Unpin, D: Unpin, E: Unpin,

§

impl<D, B, E> UnsafeUnpin for Push<D, B, E>

§

impl<D, B, E> UnwindSafe for Push<D, B, E>
where B: UnwindSafe, D: 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.