[][src]Struct nu_cli::InputStream

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, Global>>[src]

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

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

pub fn from_stream(
    input: impl Send + Stream<Item = Value> + '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, Global>>, 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<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<V, T> VZip<V> for T where
    V: MultiLane<T>,