pub struct TimerNodeAdapter<Context, Action>{ /* private fields */ }Expand description
An adapter to use a timer node as a standard node
Implementations§
Trait Implementations§
Source§impl<Context, Action> Node<Context, Action> for TimerNodeAdapter<Context, Action>
impl<Context, Action> Node<Context, Action> for TimerNodeAdapter<Context, Action>
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<NodeOutcome<Self::Output, Action>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut Context,
) -> Pin<Box<dyn Future<Output = Result<NodeOutcome<Self::Output, Action>, FloxideError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process the node asynchronously
Auto Trait Implementations§
impl<Context, Action> Freeze for TimerNodeAdapter<Context, Action>
impl<Context, Action> !RefUnwindSafe for TimerNodeAdapter<Context, Action>
impl<Context, Action> Send for TimerNodeAdapter<Context, Action>
impl<Context, Action> Sync for TimerNodeAdapter<Context, Action>
impl<Context, Action> Unpin for TimerNodeAdapter<Context, Action>
impl<Context, Action> !UnwindSafe for TimerNodeAdapter<Context, Action>
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