pub enum FinalOrPersistedExecutionContext<'a> {
Final(ExecutionContext),
Ongoing(&'a mut ExecutionContext),
}Expand description
Represents an execution context that can be either final (dropped after execution) or persisted (kept for future executions). Depending on this, the [is_end_of_context] flag is set to true or false on the DXB block
Variants§
Final(ExecutionContext)
The execution is no longer used afterwards and will be dropped after the execution is finished
Ongoing(&'a mut ExecutionContext)
The execution context is only given as a reference and will be persisted after the execution is finished. This allows reusing the same execution context for multiple executions.
Implementations§
Source§impl FinalOrPersistedExecutionContext<'_>
impl FinalOrPersistedExecutionContext<'_>
Sourcepub fn is_end_of_context(&self) -> bool
pub fn is_end_of_context(&self) -> bool
Returns true if the execution context is final and will be dropped after the execution is finished.
Trait Implementations§
Source§impl AsMut<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
impl AsMut<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
Source§fn as_mut(&mut self) -> &mut ExecutionContext
fn as_mut(&mut self) -> &mut ExecutionContext
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
impl AsRef<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
Source§fn as_ref(&self) -> &ExecutionContext
fn as_ref(&self) -> &ExecutionContext
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a> From<&'a mut ExecutionContext> for FinalOrPersistedExecutionContext<'a>
impl<'a> From<&'a mut ExecutionContext> for FinalOrPersistedExecutionContext<'a>
Source§fn from(context: &'a mut ExecutionContext) -> Self
fn from(context: &'a mut ExecutionContext) -> Self
Converts to this type from the input type.
Source§impl From<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
impl From<ExecutionContext> for FinalOrPersistedExecutionContext<'_>
Source§fn from(context: ExecutionContext) -> Self
fn from(context: ExecutionContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FinalOrPersistedExecutionContext<'a>
impl<'a> !Send for FinalOrPersistedExecutionContext<'a>
impl<'a> !Sync for FinalOrPersistedExecutionContext<'a>
impl<'a> !UnwindSafe for FinalOrPersistedExecutionContext<'a>
impl<'a> Forget for FinalOrPersistedExecutionContext<'a>
impl<'a> Freeze for FinalOrPersistedExecutionContext<'a>
impl<'a> Move for FinalOrPersistedExecutionContext<'a>
impl<'a> Unpin for FinalOrPersistedExecutionContext<'a>
impl<'a> UnsafeUnpin for FinalOrPersistedExecutionContext<'a>
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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type