Skip to main content

Msg

Enum Msg 

Source
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: TerminalSession

The terminal the harness draws on.

§container: Arc<LoginContainer>

The container it runs in.

§

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§

Source§

impl Clone for Msg

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Msg

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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>

Convert 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)

Convert &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)

Convert &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
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.