pub struct Record {Show 15 fields
pub id: String,
pub kind: &'static str,
pub state: String,
pub value: Option<f64>,
pub text: Option<String>,
pub tone: Tone,
pub name: Option<String>,
pub action: Option<String>,
pub host: Option<String>,
pub interactive: bool,
pub enabled: bool,
pub shown: bool,
pub pulsing: bool,
pub command: Option<String>,
pub rect: [f32; 4],
}Expand description
What agents and tests see of a drawn indicator.
Fields§
§id: StringIts id (Indicator::id).
kind: &'static strdot, led, badge, pip, flag, swatch, icon or mark
(a ValueMark).
state: StringThe LED’s, pip’s or flag’s state, count or text for a badge,
color, none or mixed for a swatch, on or off for a
toggle, the icon’s name, shown for a dot, changed, held or
moved for a mark.
value: Option<f64>A badge’s count, a pip’s fraction, a toggle’s 1 or 0.
text: Option<String>What it shows: a badge’s text (99+), a swatch’s colour.
tone: Tone§name: Option<String>Its meaning, as read by screen readers.
action: Option<String>An interactive one’s action.
host: Option<String>The accessible name of the widget it sits on, before its meaning joined it.
interactive: bool§enabled: bool§shown: boolWhether it shows (a badge at zero, a delayed pip do not).
pulsing: bool§command: Option<String>§rect: [f32; 4]Its mark’s rectangle in points: x, y, width, height.
Trait Implementations§
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more