pub enum Kind {
KeyboardLayout,
AutoSuspend,
AutoPowerOff,
Toggle(ToggleSettings),
LibraryInfo(usize),
LibraryName(usize),
LibraryPath(usize),
LibraryMode(usize),
IntermissionSuspend,
IntermissionPowerOff,
IntermissionShare,
SettingsRetention,
}Expand description
Represents the type of setting value being displayed.
This enum categorizes different settings that can be configured in the application, including keyboard layout, power management, button schemes, and library settings.
Variants§
KeyboardLayout
Keyboard layout selection setting
AutoSuspend
Auto-suspend timeout setting (in minutes)
AutoPowerOff
Auto power-off timeout setting (in minutes)
Toggle(ToggleSettings)
Generic toggle setting
LibraryInfo(usize)
Library info display for the library at the given index
LibraryName(usize)
Library name setting for the library at the given index
LibraryPath(usize)
Library path setting for the library at the given index
LibraryMode(usize)
Library mode setting (database or filesystem) for the library at the given index
IntermissionSuspend
Intermission display setting for suspend screen
IntermissionPowerOff
Intermission display setting for power-off screen
Intermission display setting for share screen
SettingsRetention
Settings retention setting (how many old versions to keep)
Implementations§
Source§impl Kind
impl Kind
pub fn matches_interm_kind(&self, interm_kind: &IntermKind) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.