This is supported 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<Arc<dyn Array + 'static>>)
Next item in the stream
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl !UnwindSafe for StreamState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more