pub struct Branch<C: Callable> {
pub condition: Condition,
pub callable: Arc<C>,
pub name: String,
}Expand description
A conditional branch
Fields§
§condition: ConditionCondition to evaluate
callable: Arc<C>Callable to execute if condition is true
name: StringBranch name (for debugging/logging)
Implementations§
Auto Trait Implementations§
impl<C> Freeze for Branch<C>
impl<C> !RefUnwindSafe for Branch<C>
impl<C> Send for Branch<C>
impl<C> Sync for Branch<C>
impl<C> Unpin for Branch<C>
impl<C> UnsafeUnpin for Branch<C>
impl<C> !UnwindSafe for Branch<C>
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