Struct nu_command::ActionStream[][src]

pub struct ActionStream {
    pub values: Box<dyn Iterator<Item = Result<ReturnSuccess, ShellError>> + 'static + Sync + Send, Global>,
}

Fields

values: Box<dyn Iterator<Item = Result<ReturnSuccess, ShellError>> + 'static + Sync + Send, Global>

Implementations

impl ActionStream[src]

pub fn new(
    values: impl Iterator<Item = Result<ReturnSuccess, ShellError>> + Send + Sync + 'static
) -> ActionStream
[src]

pub fn empty() -> ActionStream[src]

pub fn one(item: impl Into<Result<ReturnSuccess, ShellError>>) -> ActionStream[src]

pub fn from_input(
    input: impl Iterator<Item = Value> + Send + Sync + 'static
) -> ActionStream
[src]

pub fn drain_vec(&mut self) -> Vec<Result<ReturnSuccess, ShellError>, Global>[src]

Trait Implementations

impl From<InputStream> for ActionStream[src]

impl From<Vec<Result<ReturnSuccess, ShellError>, Global>> for ActionStream[src]

impl From<Vec<Value, Global>> for ActionStream[src]

impl From<VecDeque<Result<ReturnSuccess, ShellError>>> for ActionStream[src]

impl From<VecDeque<Value>> for ActionStream[src]

impl Iterator for ActionStream[src]

type Item = Result<ReturnSuccess, ShellError>

The type of the elements being iterated over.

Auto Trait Implementations

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<S, V> Interruptible<V> for S where
    S: Iterator<Item = V> + Send + Sync + 'static, 
[src]

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> Itertools for T where
    T: Iterator + ?Sized
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, E, I> ResultIteratorExt for I where
    I: Iterator<Item = Result<T, E>>, 
[src]

type Val = T

Ok(Val)

type Err = E

Err(Err)

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T, U> ToActionStream for T where
    T: Iterator<Item = U> + Send + Sync + 'static,
    U: Into<Result<ReturnSuccess, ShellError>>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,