pub enum NodeResult<State, Deps, End> {
Next(Box<dyn BaseNode<State, Deps, End>>),
NextNamed(String),
End(End),
}Available on crate feature
graph only.Expand description
Result of a node execution.
Variants§
Next(Box<dyn BaseNode<State, Deps, End>>)
Continue to another node.
NextNamed(String)
Continue to a named node.
End(End)
End the graph with a result.
Implementations§
Source§impl<State, Deps, End> NodeResult<State, Deps, End>
impl<State, Deps, End> NodeResult<State, Deps, End>
Sourcepub fn next<N>(node: N) -> NodeResult<State, Deps, End>where
N: BaseNode<State, Deps, End> + 'static,
pub fn next<N>(node: N) -> NodeResult<State, Deps, End>where
N: BaseNode<State, Deps, End> + 'static,
Create a Next result with a node.
Sourcepub fn next_named(name: impl Into<String>) -> NodeResult<State, Deps, End>
pub fn next_named(name: impl Into<String>) -> NodeResult<State, Deps, End>
Create a NextNamed result.
Sourcepub fn end(value: End) -> NodeResult<State, Deps, End>
pub fn end(value: End) -> NodeResult<State, Deps, End>
Create an End result.
Auto Trait Implementations§
impl<State, Deps, End> Freeze for NodeResult<State, Deps, End>where
End: Freeze,
impl<State, Deps, End> !RefUnwindSafe for NodeResult<State, Deps, End>
impl<State, Deps, End> Send for NodeResult<State, Deps, End>where
End: Send,
impl<State, Deps, End> Sync for NodeResult<State, Deps, End>where
End: Sync,
impl<State, Deps, End> Unpin for NodeResult<State, Deps, End>where
End: Unpin,
impl<State, Deps, End> !UnwindSafe for NodeResult<State, Deps, End>
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