pub enum StreamState {
Waiting,
Some(Chunk<Box<dyn Array>>),
}
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§
Implementations§
Auto Trait Implementations§
impl Freeze for StreamState
impl !RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl !UnwindSafe for StreamState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more