pub struct AutoSuspend;Expand description
Auto suspend timeout setting
Trait Implementations§
Source§impl InputSettingKind for AutoSuspend
impl InputSettingKind for AutoSuspend
Source§fn submit_view_id(&self) -> ViewId
fn submit_view_id(&self) -> ViewId
The
ViewId used by this setting’s NamedInput and its submit event.Source§fn open_entry_id(&self) -> EntryId
fn open_entry_id(&self) -> EntryId
The
EntryId event that opens this setting’s input dialog when tapped.Source§fn input_label(&self) -> String
fn input_label(&self) -> String
Label shown inside the
NamedInput dialog.Source§fn input_max_chars(&self) -> usize
fn input_max_chars(&self) -> usize
Maximum number of characters the input accepts.
Source§fn current_text(&self, settings: &Settings) -> String
fn current_text(&self, settings: &Settings) -> String
The current value as a string to pre-populate the input field.
Source§impl SettingKind for AutoSuspend
impl SettingKind for AutoSuspend
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 moreAuto Trait Implementations§
impl Freeze for AutoSuspend
impl RefUnwindSafe for AutoSuspend
impl Send for AutoSuspend
impl Sync for AutoSuspend
impl Unpin for AutoSuspend
impl UnwindSafe for AutoSuspend
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