pub enum RouteOutput {
One(NodeId),
Many(Vec<NodeId>),
End,
}Expand description
The result of a routing decision.
Variants§
One(NodeId)
Go to a single node.
Many(Vec<NodeId>)
Go to multiple nodes in parallel.
End
End the graph execution.
Implementations§
Source§impl RouteOutput
impl RouteOutput
Sourcepub fn many(nodes: impl IntoIterator<Item = impl Into<NodeId>>) -> Self
pub fn many(nodes: impl IntoIterator<Item = impl Into<NodeId>>) -> Self
Create a route to multiple nodes.
Sourcepub fn into_nodes(self) -> Vec<NodeId>
pub fn into_nodes(self) -> Vec<NodeId>
Convert to node IDs, replacing END sentinel with actual end.
Trait Implementations§
Source§impl Clone for RouteOutput
impl Clone for RouteOutput
Source§impl Debug for RouteOutput
impl Debug for RouteOutput
Source§impl From<&str> for RouteOutput
impl From<&str> for RouteOutput
Source§impl From<NodeId> for RouteOutput
impl From<NodeId> for RouteOutput
Source§impl From<String> for RouteOutput
impl From<String> for RouteOutput
Auto Trait Implementations§
impl Freeze for RouteOutput
impl RefUnwindSafe for RouteOutput
impl Send for RouteOutput
impl Sync for RouteOutput
impl Unpin for RouteOutput
impl UnsafeUnpin for RouteOutput
impl UnwindSafe for RouteOutput
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