pub enum StreamState {
Waiting,
Some(RecordBatchT<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§
Implementations§
Source§impl StreamState
impl StreamState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more