Struct nu_stream::ActionStream[][src]

pub struct ActionStream {
    pub values: Box<dyn Iterator<Item = ReturnValue> + Send + Sync>,
}

Fields

values: Box<dyn Iterator<Item = ReturnValue> + Send + Sync>

Implementations

impl ActionStream[src]

pub fn new(
    values: impl Iterator<Item = ReturnValue> + Send + Sync + 'static
) -> ActionStream

Notable traits for ActionStream

impl Iterator for ActionStream type Item = ReturnValue;
[src]

pub fn empty() -> ActionStream

Notable traits for ActionStream

impl Iterator for ActionStream type Item = ReturnValue;
[src]

pub fn one(item: impl Into<ReturnValue>) -> ActionStream

Notable traits for ActionStream

impl Iterator for ActionStream type Item = ReturnValue;
[src]

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

Notable traits for ActionStream

impl Iterator for ActionStream type Item = ReturnValue;
[src]

pub fn drain_vec(&mut self) -> Vec<ReturnValue>[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 = ReturnValue

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<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<T> SpannedItem for T[src]

impl<T> TaggedItem for 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.