pub enum Msg {
Show 58 variants
Reload,
Loaded(Listing),
ProvidersLoaded(Vec<ProviderEntry>),
ReloadProviders,
Probed(Vec<Status>),
Select(usize),
SelectNew,
SignInAsked,
SignOutAsked,
SignOutConfirmed,
SignedOut(Result<(), Problem>),
RebuildAsked,
RebuildConfirmed,
EditAsked,
New,
NewWhenRead,
Cancel,
Back,
Next,
Finish,
Step(usize),
Name(String),
PickHarness(usize),
PickOs(usize),
PickTemplate(usize),
SwitchExtra(Extra, bool),
PickAccount(usize),
PickProvider(usize),
PickProviderModel(usize),
ModelFilter(String),
ManageProviders,
PickAssets(usize),
PickNetwork(usize),
BuildStart,
BaseImageStarted,
BuildLine(String),
BuildLooked(Instant),
BuildEnded(Result<(), Problem>),
BuildCancel,
LoginStart,
LoginOpened {
session: TerminalSession,
container: Arc<LoginContainer>,
},
LoginEvent(TerminalEvent),
LoginDone,
LoginCancel,
LoginStored(Result<usize, Problem>),
LoginFailed(Problem),
LoginDiscarded,
WindowOpened(u64, Arc<SignIn>),
WindowSeen(u64, Seen),
WindowAsked(u64, Vec<String>),
WindowPage(u64, String, Page),
WindowBack(u64, u64, Ending),
DeleteAsked,
DeleteSurveyed(Box<Survey>),
DeleteConfirmed(bool),
DeleteKept,
Deleted(Box<Survey>, Outcome),
Shell(ShellMsg),
}Expand description
Everything that can happen on the profiles screen.
Variants§
Reload
Read the store again. This is also how the screen is started.
Loaded(Listing)
The store was read.
ProvidersLoaded(Vec<ProviderEntry>)
The providers file was read, on the same reload.
ReloadProviders
Read the providers file again, and only that: the Providers page was open over this screen, and what was added there is what the wizard’s account page now offers.
Probed(Vec<Status>)
The engine answered about every profile.
Select(usize)
The selection moved to the profile at this place in the list.
SelectNew
The selection moved to the row that makes a new profile.
SignInAsked
Signing the chosen profile in was asked for, which is how a login that was interrupted is picked up again.
SignOutAsked
Signing a profile out was asked for.
SignOutConfirmed
The question was answered with yes.
SignedOut(Result<(), Problem>)
The login was removed, or could not be.
RebuildAsked
Building the chosen profile’s image again was asked for.
RebuildConfirmed
The question was answered with yes: the image page opens on its own and the build starts.
EditAsked
Changing the chosen profile was asked for: the wizard opens on it.
New
Open the wizard.
NewWhenRead
Open the wizard as soon as the store has been read, for a person who asked for a new profile from somewhere else and should not have to ask a second time here. It waits for the listing because the wizard’s suggested name steps around the names already taken.
Cancel
Leave the wizard without keeping anything that has not been made yet.
Back
Go back a page.
Next
Go on a page.
Finish
Leave the wizard, keeping what was made.
Step(usize)
Go back to a finished page.
Name(String)
The name was typed.
PickHarness(usize)
A harness was chosen.
PickOs(usize)
An operating system was chosen, by its place in Os::ALL.
PickTemplate(usize)
A template was chosen.
SwitchExtra(Extra, bool)
A part of a QCode template’s additions was switched on (true) or off.
PickAccount(usize)
An account type was chosen.
PickProvider(usize)
A provider was chosen, on the account page’s own list.
PickProviderModel(usize)
A model of the chosen provider, or one of its lineups, was chosen by its place in the list the filter leaves.
ModelFilter(String)
The filter of the model list was typed.
ManageProviders
The person asked to go to the Providers page, because the harness they chose can be pointed at one but they have not added any yet.
PickAssets(usize)
An access for Assets/ was chosen.
PickNetwork(usize)
A network mode was chosen.
BuildStart
Build the image.
BaseImageStarted
The base image was not on the machine, so it is being built before the profile’s image.
BuildLine(String)
The build printed a line.
BuildLooked(Instant)
The build was looked at, which is what says whether its log has gone quiet for long enough to be stuck.
BuildEnded(Result<(), Problem>)
The build ended.
BuildCancel
Stop the build.
LoginStart
Open the container the login happens in.
LoginOpened
The container is up and the harness is running on a terminal.
Fields
session: TerminalSessionThe terminal the harness draws on.
LoginEvent(TerminalEvent)
Something happened on the login terminal.
LoginDone
The person says they have signed in; look for the login and store it.
LoginCancel
Stop the login and leave nothing behind.
LoginStored(Result<usize, Problem>)
The login was stored, or it was not.
LoginFailed(Problem)
The container could not be opened.
LoginDiscarded
A container a login used has been cleared away.
WindowOpened(u64, Arc<SignIn>)
The window a login is made in is open on the person’s screen; the number tells this opening apart from an earlier one.
WindowSeen(u64, Seen)
The look for the window’s login found it, or found the window gone.
WindowAsked(u64, Vec<String>)
The window asked for these web addresses to be opened, the newest last.
WindowPage(u64, String, Page)
The page the window asked for was shown, or could not be.
WindowBack(u64, u64, Ending)
The listening for a window sign-in’s way back ended; the second number is which listening.
DeleteAsked
Deleting the chosen profile was asked for: the engine is asked what it holds of it first.
DeleteSurveyed(Box<Survey>)
The engine answered what it holds of the profile to be deleted.
DeleteConfirmed(bool)
The question was answered with yes; true when the workspaces’ homes of it go too.
DeleteKept
The question was answered with no.
Deleted(Box<Survey>, Outcome)
The deletion is over.
Shell(ShellMsg)
Something about a profile’s shell, or its own steps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Msg
impl RefUnwindSafe for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
impl UnwindSafe for Msg
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<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