pub enum ExecutionMode {
Bounded,
Unbounded,
PipelineBreaking,
}
Expand description
Describes the execution mode of an operator’s resulting stream with respect
to its size and behavior. There are three possible execution modes: Bounded
,
Unbounded
and PipelineBreaking
.
Variants§
Bounded
Represents the mode where generated stream is bounded, e.g. finite.
Unbounded
Represents the mode where generated stream is unbounded, e.g. infinite. Even though the operator generates an unbounded stream of results, it works with bounded memory and execution can still continue successfully.
The stream that results from calling execute
on an ExecutionPlan
that is Unbounded
will never be done (return None
), except in case of error.
PipelineBreaking
Represents the mode where some of the operator’s input stream(s) are unbounded; however, the operator cannot generate streaming results from these streaming inputs. In this case, the execution mode will be pipeline breaking, e.g. the operator requires unbounded memory to generate results.
Implementations§
source§impl ExecutionMode
impl ExecutionMode
sourcepub fn is_unbounded(&self) -> bool
pub fn is_unbounded(&self) -> bool
Check whether the execution mode is unbounded or not.
sourcepub fn pipeline_friendly(&self) -> bool
pub fn pipeline_friendly(&self) -> bool
Check whether the execution is pipeline friendly. If so, operator can execute safely.
Trait Implementations§
source§impl Clone for ExecutionMode
impl Clone for ExecutionMode
source§fn clone(&self) -> ExecutionMode
fn clone(&self) -> ExecutionMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecutionMode
impl Debug for ExecutionMode
source§impl PartialEq for ExecutionMode
impl PartialEq for ExecutionMode
impl Copy for ExecutionMode
impl StructuralPartialEq for ExecutionMode
Auto Trait Implementations§
impl Freeze for ExecutionMode
impl RefUnwindSafe for ExecutionMode
impl Send for ExecutionMode
impl Sync for ExecutionMode
impl Unpin for ExecutionMode
impl UnwindSafe for ExecutionMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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