pub struct EventBridge { /* private fields */ }Expand description
Bridge that translates a3s-lane events to AgentEvent
Implementations§
Source§impl EventBridge
impl EventBridge
pub fn new(event_tx: Sender<AgentEvent>) -> Self
pub fn emit_dead_letter(&self, dead_letter: &DeadLetter)
pub fn emit_retry( &self, command_id: &str, command_type: &str, lane: &str, attempt: u32, delay_ms: u64, )
pub fn emit_alert(&self, level: &str, alert_type: &str, message: &str)
Auto Trait Implementations§
impl Freeze for EventBridge
impl !RefUnwindSafe for EventBridge
impl Send for EventBridge
impl Sync for EventBridge
impl Unpin for EventBridge
impl UnsafeUnpin for EventBridge
impl !UnwindSafe for EventBridge
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