pub struct StaticLabel(pub Label);Expand description
Trivial StateSource that returns the same label on every
call. The default value is Label::Steady — the “no friction,
nothing abnormal” label — so a fresh DispatchContext does
not accidentally gate commands when the engine has not yet
reported a state.
Tuple Fields§
§0: LabelImplementations§
Trait Implementations§
Source§impl Clone for StaticLabel
impl Clone for StaticLabel
Source§fn clone(&self) -> StaticLabel
fn clone(&self) -> StaticLabel
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 moreSource§impl Debug for StaticLabel
impl Debug for StaticLabel
Source§impl Default for StaticLabel
impl Default for StaticLabel
Source§impl StateSource for StaticLabel
impl StateSource for StaticLabel
impl Copy for StaticLabel
Auto Trait Implementations§
impl Freeze for StaticLabel
impl RefUnwindSafe for StaticLabel
impl Send for StaticLabel
impl Sync for StaticLabel
impl Unpin for StaticLabel
impl UnsafeUnpin for StaticLabel
impl UnwindSafe for StaticLabel
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