pub struct Settings { /* private fields */ }Expand description
The settings screen’s state.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn new(config: &Config, engine: EngineState) -> Self
pub fn new(config: &Config, engine: EngineState) -> Self
A settings screen showing what config holds, including every repair its file needed,
with engine as the last check left it. The profiles are not read yet.
Sourcepub fn with_update_notice(self, on: Option<bool>) -> Self
pub fn with_update_notice(self, on: Option<bool>) -> Self
The same screen, showing the family’s update notice as on; None shows no row, which is
a machine with no family folder to keep the switch in.
Sourcepub fn update_notice(&self) -> Option<bool>
pub fn update_notice(&self) -> Option<bool>
The family’s update notice as the screen shows it.
Sourcepub fn with_service(self, row: Option<ServiceRow>) -> Self
pub fn with_service(self, row: Option<ServiceRow>) -> Self
The same screen, showing the background service as row says; None shows no row.
Sourcepub fn service(&self) -> Option<ServiceRow>
pub fn service(&self) -> Option<ServiceRow>
What the screen shows about the background service.
Sourcepub fn with_left_behind(self, files: Vec<Diagnostic>) -> Self
pub fn with_left_behind(self, files: Vec<Diagnostic>) -> Self
The same screen, also reporting files: what an earlier version left behind — a settings
file that stayed where it was when the settings moved to the family’s folder, a folder of
the store that could not be given the name it has today — each with the reason.
They add up rather than replace one another: the two are found at different moments of the start, and the person has read neither.
Sourcepub fn left_behind(&self) -> &[Diagnostic]
pub fn left_behind(&self) -> &[Diagnostic]
The old settings files the screen still has to report, so a screen made again from new settings keeps the news the person has not read yet.
Sourcepub fn engine(&self) -> &EngineState
pub fn engine(&self) -> &EngineState
The engine as the last check left it, for the repair strip.
Sourcepub fn gate(&self) -> Gate
pub fn gate(&self) -> Gate
Whether the actions that reach into a container may be used, and why not when they may not. Screens outside settings use the same gate, so a dead action means the same thing everywhere.
Sourcepub fn chosen_profile(&self) -> Option<&ProfileIdentity>
pub fn chosen_profile(&self) -> Option<&ProfileIdentity>
The profile the identity actions work on.
Trait Implementations§
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§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>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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