Struct oasis_core_runtime::transaction::dispatcher::NoopDispatcher
source · pub struct NoopDispatcher;
Expand description
No-op dispatcher.
This is mainly used by the runtime dispatcher as a fallback in case the runtime’s initializer doesn’t produce its own dispatcher object.
Trait Implementations§
source§impl Default for NoopDispatcher
impl Default for NoopDispatcher
source§fn default() -> NoopDispatcher
fn default() -> NoopDispatcher
Returns the “default value” for a type. Read more
source§impl Dispatcher for NoopDispatcher
impl Dispatcher for NoopDispatcher
source§fn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Whether dispatch is supported by this dispatcher.
source§fn execute_batch(
&self,
_ctx: Context<'_>,
_batch: &TxnBatch,
in_msgs: &[IncomingMessage],
) -> Result<ExecuteBatchResult, RuntimeError>
fn execute_batch( &self, _ctx: Context<'_>, _batch: &TxnBatch, in_msgs: &[IncomingMessage], ) -> Result<ExecuteBatchResult, RuntimeError>
Execute the transactions in the given batch. Read more
source§fn schedule_and_execute_batch(
&self,
_ctx: Context<'_>,
_initial_batch: &mut TxnBatch,
in_msgs: &[IncomingMessage],
) -> Result<ExecuteBatchResult, RuntimeError>
fn schedule_and_execute_batch( &self, _ctx: Context<'_>, _initial_batch: &mut TxnBatch, in_msgs: &[IncomingMessage], ) -> Result<ExecuteBatchResult, RuntimeError>
Schedule and execute transactions in the given batch. Read more
source§fn check_batch(
&self,
_ctx: Context<'_>,
_batch: &TxnBatch,
) -> Result<Vec<CheckTxResult>, RuntimeError>
fn check_batch( &self, _ctx: Context<'_>, _batch: &TxnBatch, ) -> Result<Vec<CheckTxResult>, RuntimeError>
Check the transactions in the given batch for validity. Read more
source§fn set_abort_batch_flag(&mut self, _abort_batch: Arc<AtomicBool>)
fn set_abort_batch_flag(&mut self, _abort_batch: Arc<AtomicBool>)
Configure abort batch flag.
Auto Trait Implementations§
impl Freeze for NoopDispatcher
impl RefUnwindSafe for NoopDispatcher
impl Send for NoopDispatcher
impl Sync for NoopDispatcher
impl Unpin for NoopDispatcher
impl UnwindSafe for NoopDispatcher
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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