pub struct Profiles { /* private fields */ }Expand description
The profiles screen.
Implementations§
Source§impl Profiles
impl Profiles
Sourcepub fn new(root: Option<PathBuf>, engine: Option<Engine>) -> Self
pub fn new(root: Option<PathBuf>, engine: Option<Engine>) -> Self
A profiles screen for the store at root, using engine.
Both are optional because both can be missing on a working machine: a store that has not been chosen yet, and an engine that was uninstalled after the setup. The screen opens either way and says what it cannot do.
Sourcepub fn showing_on(self, display: Result<Display, NoDisplay>) -> Self
pub fn showing_on(self, display: Result<Display, NoDisplay>) -> Self
The same screen, opening a sign-in window on display rather than on the session this
process was started in: a test’s own stand-in, never the person’s screen.
Sourcepub fn with_providers_file(self, path: Option<PathBuf>) -> Self
pub fn with_providers_file(self, path: Option<PathBuf>) -> Self
The same screen reading the providers from path rather than from this machine’s data
folder, so that it offers exactly what the Providers page it sends the person to wrote.
Sourcepub fn just_made(&mut self) -> Option<SafeName>
pub fn just_made(&mut self) -> Option<SafeName>
The profile the wizard has just finished making, taken once.
It is how this screen tells the application that the work it was opened for is done. Who opened it decides what that means: a workspace waiting behind this screen for a profile it can open a tab with gets it back, and nobody else is moved.
Sourcepub fn is_loading(&self) -> bool
pub fn is_loading(&self) -> bool
Whether the store is still being read.
Sourcepub fn problems(&self) -> &[Diagnostic]
pub fn problems(&self) -> &[Diagnostic]
Everything that was wrong with the definition files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiles
impl RefUnwindSafe for Profiles
impl Send for Profiles
impl Sync for Profiles
impl Unpin for Profiles
impl UnsafeUnpin for Profiles
impl UnwindSafe for Profiles
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> 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<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