pub struct SyncNode<S: StateSchema, F> { /* private fields */ }Expand description
Simple sync node wrapper
For nodes that don’t need async execution.
Implementations§
Source§impl<S: StateSchema, F> SyncNode<S, F>
impl<S: StateSchema, F> SyncNode<S, F>
Trait Implementations§
Source§impl<S: StateSchema, F> GraphNode<S> for SyncNode<S, F>
impl<S: StateSchema, F> GraphNode<S> for SyncNode<S, F>
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 S,
_config: Option<NodeConfig>,
) -> Pin<Box<dyn Future<Output = Result<StateUpdate<S>, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 S,
_config: Option<NodeConfig>,
) -> Pin<Box<dyn Future<Output = Result<StateUpdate<S>, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the node Read more
Auto Trait Implementations§
impl<S, F> Freeze for SyncNode<S, F>
impl<S, F> RefUnwindSafe for SyncNode<S, F>
impl<S, F> Send for SyncNode<S, F>
impl<S, F> Sync for SyncNode<S, F>
impl<S, F> Unpin for SyncNode<S, F>
impl<S, F> UnsafeUnpin for SyncNode<S, F>
impl<S, F> UnwindSafe for SyncNode<S, F>
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