pub enum Msg {
Select(String),
ClearSelection,
SetBadge(String, u64),
SetDetail(String, String),
}Expand description
A robot-/CLI-addressable control message — the named boundary a headless
driver (or a host toolbar) drives the chart through, the same effect the
canvas gestures produce. Applied by SystemChart::update; the pure
view returns these (it never mutates self).
Variants§
Select(String)
Toggle-select the node with this stable id: selecting the already- selected node clears it, an unknown id is a no-op (parity with the click).
ClearSelection
Clear any selection.
SetBadge(String, u64)
Set a node’s badge count by id (e.g. a live event count). No-op if unknown.
SetDetail(String, String)
Set a node’s detail text by id. No-op if unknown.
Trait Implementations§
impl StructuralPartialEq for Msg
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
Blanket Implementations§
impl<T> Allocation for T
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