pub struct ConditionalEdge<S>{
pub selector: EdgeSelector<S>,
pub mapping: HashMap<String, String>,
}Expand description
One conditional-edge dispatch.
Exposed for advanced users that build CompiledGraphs outside the
standard StateGraph::compile flow. Most callers use
crate::StateGraph::add_conditional_edges instead.
Fields§
§selector: EdgeSelector<S>Function that produces a routing key from the current state.
mapping: HashMap<String, String>Routing-key → target-node mapping. Targets are either node names
or crate::END.
Auto Trait Implementations§
impl<S> Freeze for ConditionalEdge<S>
impl<S> !RefUnwindSafe for ConditionalEdge<S>
impl<S> Send for ConditionalEdge<S>
impl<S> Sync for ConditionalEdge<S>
impl<S> Unpin for ConditionalEdge<S>
impl<S> UnsafeUnpin for ConditionalEdge<S>
impl<S> !UnwindSafe for ConditionalEdge<S>
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