pub enum ComponentUpdate {
Status {
component_id: String,
status: ComponentStatus,
message: Option<String>,
},
}Expand description
A status or metric update sent from a component to the graph update loop.
Components hold a cloned mpsc::Sender<ComponentUpdate> and call send() or
try_send() to report status changes without acquiring any locks. The graph
update loop is the sole consumer.
Variants§
Status
A component status change (e.g., Running, Error, Stopped).
Trait Implementations§
Source§impl Clone for ComponentUpdate
impl Clone for ComponentUpdate
Source§fn clone(&self) -> ComponentUpdate
fn clone(&self) -> ComponentUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentUpdate
impl RefUnwindSafe for ComponentUpdate
impl Send for ComponentUpdate
impl Sync for ComponentUpdate
impl Unpin for ComponentUpdate
impl UnsafeUnpin for ComponentUpdate
impl UnwindSafe for ComponentUpdate
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