pub enum NodeEvent {
Infra(InfraEvent),
App(AppEvent),
}Expand description
All events that may flow through the in-Node bus.
Variants§
Implementations§
Source§impl NodeEvent
impl NodeEvent
Sourcepub fn kind(&self) -> &str
pub fn kind(&self) -> &str
String discriminator used by crate::engine::Engine’s
bus-routing lookup against
event_subscriptions: HashMap<String, Vec<NodeSiteId>>.
Infra events map to the variant name (e.g.
"OpFailure"); App events use the user-supplied topic so
EventSource subscribers can target a specific channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeEvent
impl RefUnwindSafe for NodeEvent
impl Send for NodeEvent
impl Sync for NodeEvent
impl Unpin for NodeEvent
impl UnsafeUnpin for NodeEvent
impl UnwindSafe for NodeEvent
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