pub enum BusEvent {
Added {
device_id: DeviceId,
kind: String,
at: Millis,
},
Removed {
device_id: DeviceId,
at: Millis,
},
State {
device_id: DeviceId,
state: Value,
at: Millis,
},
Output {
device_id: DeviceId,
job: Job,
},
}Expand description
An event on the registry’s event bus, for observers such as the dashboard and MCP server.
On the wire the type is device:added, device:removed, device:state or
device:output.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BusEvent
impl<'de> Deserialize<'de> for BusEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BusEvent
Auto Trait Implementations§
impl !Freeze for BusEvent
impl RefUnwindSafe for BusEvent
impl Send for BusEvent
impl Sync for BusEvent
impl Unpin for BusEvent
impl UnsafeUnpin for BusEvent
impl UnwindSafe for BusEvent
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