pub struct CompoundTriggerHandler { /* private fields */ }Expand description
Routes dispatch calls to the correct family handler by trigger kind.
Wire this as the single TriggerHandler in the production DispatchEngine.
Implementations§
Source§impl CompoundTriggerHandler
impl CompoundTriggerHandler
pub fn new( agent: AgentDispatchHandler, notification: NotificationHandler, yubaba: YubabaActionHandler, ) -> Self
Trait Implementations§
Source§impl TriggerHandler for CompoundTriggerHandler
impl TriggerHandler for CompoundTriggerHandler
fn handle(&self, ctx: &DispatchContext) -> Result<(), DispatchError>
Auto Trait Implementations§
impl !RefUnwindSafe for CompoundTriggerHandler
impl !UnwindSafe for CompoundTriggerHandler
impl Freeze for CompoundTriggerHandler
impl Send for CompoundTriggerHandler
impl Sync for CompoundTriggerHandler
impl Unpin for CompoundTriggerHandler
impl UnsafeUnpin for CompoundTriggerHandler
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