pub enum StreamTerminal {
Open,
Exhausted,
Closed,
Cancelled,
Failed(StreamFailure),
}Expand description
One-way lifecycle state for a DataFrameStream.
Variants§
Open
The stream may yield its next batch.
Exhausted
The source ended normally; later reads return end-of-stream.
Closed
The consumer closed the stream before exhaustion.
Cancelled
The consumer cancelled the stream before exhaustion.
Failed(StreamFailure)
The stream failed; later reads reproduce this structured failure.
Implementations§
Source§impl StreamTerminal
impl StreamTerminal
Sourcepub fn as_error(&self) -> Option<DataFrameError>
pub fn as_error(&self) -> Option<DataFrameError>
Return the corresponding repeatable error, if this terminal state cannot yield.
Trait Implementations§
Source§impl Clone for StreamTerminal
impl Clone for StreamTerminal
Source§fn clone(&self) -> StreamTerminal
fn clone(&self) -> StreamTerminal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamTerminal
impl Debug for StreamTerminal
impl Eq for StreamTerminal
Source§impl PartialEq for StreamTerminal
impl PartialEq for StreamTerminal
impl StructuralPartialEq for StreamTerminal
Auto Trait Implementations§
impl Freeze for StreamTerminal
impl RefUnwindSafe for StreamTerminal
impl Send for StreamTerminal
impl Sync for StreamTerminal
impl Unpin for StreamTerminal
impl UnsafeUnpin for StreamTerminal
impl UnwindSafe for StreamTerminal
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.