pub struct DirectStrategy;Expand description
Direct execution strategy - executes actions immediately without state checks.
Implementations§
Trait Implementations§
Source§impl Clone for DirectStrategy
impl Clone for DirectStrategy
Source§fn clone(&self) -> DirectStrategy
fn clone(&self) -> DirectStrategy
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 moreSource§impl Debug for DirectStrategy
impl Debug for DirectStrategy
Source§impl Default for DirectStrategy
impl Default for DirectStrategy
Source§fn default() -> DirectStrategy
fn default() -> DirectStrategy
Returns the “default value” for a type. Read more
Source§impl ExecutionStrategy for DirectStrategy
impl ExecutionStrategy for DirectStrategy
Source§fn execute<'a>(
&'a self,
_action: &'a str,
input: Value,
) -> BoxFuture<'a, Result<Value, StrategyError>>
fn execute<'a>( &'a self, _action: &'a str, input: Value, ) -> BoxFuture<'a, Result<Value, StrategyError>>
Execute an action with input.
Source§fn tick(&self) -> BoxFuture<'_, Result<Option<Value>, StrategyError>>
fn tick(&self) -> BoxFuture<'_, Result<Option<Value>, StrategyError>>
Process pending work (for stateful strategies).
Source§fn snapshot(&self) -> Result<Box<dyn StrategySnapshot>, StrategyError>
fn snapshot(&self) -> Result<Box<dyn StrategySnapshot>, StrategyError>
Capture current strategy state.
Source§fn signal_routes(&self) -> Vec<SignalRoute>
fn signal_routes(&self) -> Vec<SignalRoute>
Get signal routes contributed by this strategy.
Auto Trait Implementations§
impl Freeze for DirectStrategy
impl RefUnwindSafe for DirectStrategy
impl Send for DirectStrategy
impl Sync for DirectStrategy
impl Unpin for DirectStrategy
impl UnsafeUnpin for DirectStrategy
impl UnwindSafe for DirectStrategy
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