pub struct FunctionNode<State, F, Fut>{ /* private fields */ }Expand description
A node that runs a function.
Implementations§
Trait Implementations§
Source§impl<State, F, Fut> Node<State> for FunctionNode<State, F, Fut>where
State: GraphState,
F: Fn(State) -> Fut + Send + Sync,
Fut: Future<Output = GraphResult<State>> + Send,
impl<State, F, Fut> Node<State> for FunctionNode<State, F, Fut>where
State: GraphState,
F: Fn(State) -> Fut + Send + Sync,
Fut: Future<Output = GraphResult<State>> + Send,
Auto Trait Implementations§
impl<State, F, Fut> Freeze for FunctionNode<State, F, Fut>where
F: Freeze,
impl<State, F, Fut> RefUnwindSafe for FunctionNode<State, F, Fut>where
F: RefUnwindSafe,
State: RefUnwindSafe,
impl<State, F, Fut> Send for FunctionNode<State, F, Fut>where
State: Send,
impl<State, F, Fut> Sync for FunctionNode<State, F, Fut>where
State: Sync,
impl<State, F, Fut> Unpin for FunctionNode<State, F, Fut>
impl<State, F, Fut> UnwindSafe for FunctionNode<State, F, Fut>where
F: UnwindSafe,
State: UnwindSafe,
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