Struct nu_command::OutputStream[][src]

pub struct OutputStream {
    pub values: Pin<Box<dyn Stream<Item = Result<ReturnSuccess, ShellError>> + 'static + Send, Global>>,
}

Fields

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

Implementations

impl OutputStream[src]

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

pub fn empty() -> OutputStream[src]

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

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

pub fn drain_vec(
    &mut self
) -> impl Future<Output = Vec<Result<ReturnSuccess, ShellError>, Global>>
[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 = Result<ReturnSuccess, ShellError>

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SpannedItem for T[src]

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

impl<T> TaggedItem for T[src]

impl<T, U> ToOutputStream for T where
    T: Stream<Item = U> + Send + '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<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
[src]

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