pub enum ShellMsg {
Show 18 variants
Asked,
Opened(Result<(Arc<str>, TerminalSession), Problem>),
Leftover(Arc<str>, Session),
Continue,
AddLeftover,
Event(Side, TerminalEvent),
Admin,
AdminOpened(Result<TerminalSession, Problem>),
Show(Side),
Close,
Surveyed(Result<Session, Problem>),
Add,
Discard,
Added(Result<Own, Problem>),
Discarded,
Trim(usize),
TrimFailed(Problem),
OwnRead(HashMap<String, Own>),
}Expand description
Everything that happens to a profile’s shell and to the profile’s own steps.
Variants§
Asked
The button that opens the shell was pressed, on the wizard’s last page or in the list.
Opened(Result<(Arc<str>, TerminalSession), Problem>)
The container is up and the person’s terminal is running in it, or it could not be.
Leftover(Arc<str>, Session)
A shell that was never closed left its container with work in it; the person is asked.
Continue
Carry on in the shell that was left open.
AddLeftover
Add what the shell that was left open holds to the profile.
Event(Side, TerminalEvent)
A terminal drew or ended.
Admin
“As administrator” was pressed.
AdminOpened(Result<TerminalSession, Problem>)
The administrator’s terminal is running, or could not be started.
Show(Side)
The person chose which terminal to look at.
Close
The shell is closed: what changed is read.
Surveyed(Result<Session, Problem>)
What the shell changed and what its administrator ran.
Add
Add what the shell holds to the profile.
Discard
Throw away what the shell holds.
Added(Result<Own, Problem>)
Adding is over.
Discarded
The shell’s container is gone.
Trim(usize)
The own step at this place of the chosen profile is taken off its list.
TrimFailed(Problem)
A step could not be taken off, because the store could not be written.
OwnRead(HashMap<String, Own>)
Every profile’s own steps and home files, as the store holds them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShellMsg
impl RefUnwindSafe for ShellMsg
impl Send for ShellMsg
impl Sync for ShellMsg
impl Unpin for ShellMsg
impl UnsafeUnpin for ShellMsg
impl UnwindSafe for ShellMsg
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