Struct nu_stream::InputStream[][src]

pub struct InputStream { /* fields omitted */ }

Implementations

impl InputStream[src]

pub fn empty() -> InputStream[src]

pub fn one(item: impl Into<Value>) -> InputStream[src]

pub fn into_vec(self) -> impl Future<Output = Vec<Value>>[src]

pub fn is_empty(&self) -> bool[src]

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

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

pub async fn collect_string(
    self,
    tag: Tag
) -> Result<Tagged<String>, ShellError>
[src]

pub async fn collect_binary(
    self,
    tag: Tag
) -> Result<Tagged<Vec<u8>>, ShellError>
[src]

Trait Implementations

impl From<InputStream> for OutputStream[src]

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

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

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

impl Stream for InputStream[src]

type Item = Value

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.