Enum arrow2::io::ipc::read::StreamState

source ·
pub enum StreamState {
    Waiting,
    Some(Chunk<Box<dyn Array>>),
}
Available on crate feature io_ipc only.
Expand description

Encodes the stream’s status after each read.

A stream is an iterator, and an iterator returns Option<Item>. The Item type in the StreamReader case is StreamState, which means that an Arrow stream may yield one of three values: (1) None, which signals that the stream is done; (2) StreamState::Some, which signals that there was data waiting in the stream and we read it; and finally (3) [Some(StreamState::Waiting)], which means that the stream is still “live”, it just doesn’t hold any data right now.

Variants§

§

Waiting

A live stream without data

§

Some(Chunk<Box<dyn Array>>)

Next item in the stream

Implementations§

Return the data inside this wrapper.

Panics

If the StreamState was Waiting.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.