pub struct RefreshRateInfo;Expand description
Shows global refresh rate and opens the RefreshRateByKindEditor on tap.
Trait Implementations§
Source§impl SettingKind for RefreshRateInfo
impl SettingKind for RefreshRateInfo
Source§fn handle(
&self,
evt: &Event,
settings: &mut Settings,
_bus: &mut Bus,
) -> (Option<String>, bool)
fn handle( &self, evt: &Event, settings: &mut Settings, _bus: &mut Bus, ) -> (Option<String>, bool)
Updates the summary label when either global input is submitted.
Settings are intentionally not written here. Each input (RefreshRateRegularInput,
RefreshRateInvertedInput) has its own SettingKind row (RefreshRateRegularSetting,
RefreshRateInvertedSetting) that owns the write.
Source§fn identity(&self) -> SettingIdentity
fn identity(&self) -> SettingIdentity
Unique identity used to route
SettingsEvent::UpdateValue to the
correct SettingValue view.Source§fn label(&self, _settings: &Settings) -> String
fn label(&self, _settings: &Settings) -> String
Human-readable label shown on the left side of the setting row. Read more
Source§fn fetch(&self, settings: &Settings) -> SettingData
fn fetch(&self, settings: &Settings) -> SettingData
Fetch the current display value and widget configuration from
settings.Source§fn as_input_kind(&self) -> Option<&dyn InputSettingKind>
fn as_input_kind(&self) -> Option<&dyn InputSettingKind>
Returns this setting as an
InputSettingKind if it supports text input. Read moreSource§fn file_chooser_entry_id(&self) -> Option<EntryId>
fn file_chooser_entry_id(&self) -> Option<EntryId>
Auto Trait Implementations§
impl Freeze for RefreshRateInfo
impl RefUnwindSafe for RefreshRateInfo
impl Send for RefreshRateInfo
impl Sync for RefreshRateInfo
impl Unpin for RefreshRateInfo
impl UnsafeUnpin for RefreshRateInfo
impl UnwindSafe for RefreshRateInfo
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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