pub enum EngineTask {
Insert(InsertTask),
Build(BuildTask),
Consolidate(ConsolidateTask),
Finalize(FinalizeTask),
}Expand description
Tasks that may be inserted into and executed by the Engine.
Variants§
Insert(InsertTask)
Inserts a payload into the execution engine.
Build(BuildTask)
Builds a new block with the given attributes, and inserts it into the execution engine.
Consolidate(ConsolidateTask)
Performs consolidation on the engine state, reverting to payload attribute processing
via the BuildTask if consolidation fails.
Finalize(FinalizeTask)
Finalizes an L2 block
Trait Implementations§
Source§impl Clone for EngineTask
impl Clone for EngineTask
Source§fn clone(&self) -> EngineTask
fn clone(&self) -> EngineTask
Returns a duplicate of the value. Read more
1.0.0 · 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 EngineTask
impl Debug for EngineTask
Source§impl EngineTaskExt for EngineTask
impl EngineTaskExt for EngineTask
Source§type Error = EngineTaskErrors
type Error = EngineTaskErrors
The error type of the task.
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 mut EngineState,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 mut EngineState,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Executes the task, taking a shared lock on the engine state and
self.Source§impl Ord for EngineTask
impl Ord for EngineTask
Source§impl PartialEq for EngineTask
impl PartialEq for EngineTask
Source§impl PartialOrd for EngineTask
impl PartialOrd for EngineTask
impl Eq for EngineTask
Auto Trait Implementations§
impl !Freeze for EngineTask
impl !RefUnwindSafe for EngineTask
impl Send for EngineTask
impl Sync for EngineTask
impl Unpin for EngineTask
impl !UnwindSafe for EngineTask
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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