pub struct ConditionalEdge { /* private fields */ }Expand description
Conditional edge with routing logic
Implementations§
Source§impl ConditionalEdge
impl ConditionalEdge
pub fn new( source: impl Into<NodeId>, condition: Box<dyn RoutingCondition>, ) -> Self
pub async fn evaluate( &self, state: &GraphState, ) -> RGraphResult<RoutingDecision>
Auto Trait Implementations§
impl !RefUnwindSafe for ConditionalEdge
impl !UnwindSafe for ConditionalEdge
impl Freeze for ConditionalEdge
impl Send for ConditionalEdge
impl Sync for ConditionalEdge
impl Unpin for ConditionalEdge
impl UnsafeUnpin for ConditionalEdge
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