Struct nu_stream::OutputStream[][src]

pub struct OutputStream {
    pub values: BoxStream<'static, ReturnValue>,
}

Fields

values: BoxStream<'static, ReturnValue>

Implementations

impl OutputStream[src]

pub fn new(
    values: impl Stream<Item = ReturnValue> + Send + 'static
) -> OutputStream
[src]

pub fn empty() -> OutputStream[src]

pub fn one(item: impl Into<ReturnValue>) -> OutputStream[src]

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

pub fn drain_vec(&mut self) -> impl Future<Output = Vec<ReturnValue>>[src]

Trait Implementations

impl From<InputStream> for OutputStream[src]

impl From<Pin<Box<dyn Stream<Item = Result<ReturnSuccess, ShellError>> + 'static + Send, Global>>> for OutputStream[src]

impl From<Pin<Box<dyn Stream<Item = Value> + 'static + Send, Global>>> for OutputStream[src]

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

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

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

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

impl Stream for OutputStream[src]

type Item = ReturnValue

Values yielded by the stream.

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

impl<T> StreamExt for T where
    T: Stream + ?Sized

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.

impl<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized