pub enum StreamControl {
Continue,
Stop,
}Expand description
Control-flow signal returned by a stream_entities / stream_signed_entities
visitor: keep going or stop early.
Variants§
Continue
Continue to the next entity.
Stop
Stop iterating; the stream parser returns Ok(()) without visiting
any further entities (useful for “find the one entityID I care about
and bail” over a multi-megabyte aggregate).
Trait Implementations§
Source§impl Clone for StreamControl
impl Clone for StreamControl
Source§fn clone(&self) -> StreamControl
fn clone(&self) -> StreamControl
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 moreimpl Copy for StreamControl
Source§impl Debug for StreamControl
impl Debug for StreamControl
impl Eq for StreamControl
Source§impl PartialEq for StreamControl
impl PartialEq for StreamControl
Source§fn eq(&self, other: &StreamControl) -> bool
fn eq(&self, other: &StreamControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamControl
Auto Trait Implementations§
impl Freeze for StreamControl
impl RefUnwindSafe for StreamControl
impl Send for StreamControl
impl Sync for StreamControl
impl Unpin for StreamControl
impl UnsafeUnpin for StreamControl
impl UnwindSafe for StreamControl
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