pub enum SettingsWindowAction {
Show 23 variants
None,
Close,
ApplyConfig(Config),
SaveConfig(Config),
ApplyShader(ShaderEditorResult),
ApplyCursorShader(CursorShaderEditorResult),
TestNotification,
SaveProfiles(Vec<Profile>),
OpenProfile(Uuid),
StartCoprocess(usize),
StopCoprocess(usize),
StartScript(usize),
StopScript(usize),
OpenLogFile,
SaveArrangement(String),
RestoreArrangement(Uuid),
DeleteArrangement(Uuid),
RenameArrangement(Uuid, String),
ForceUpdateCheck,
InstallUpdate(String),
IdentifyPanes,
InstallShellIntegration,
UninstallShellIntegration,
}Expand description
Result of processing a settings window event.
This enum bridges the settings UI crate with the main application. The main application processes these actions after events are handled by the settings window.
Variants§
None
No action needed
Close
Close the settings window
ApplyConfig(Config)
Apply config changes to terminal windows (live update)
SaveConfig(Config)
Save config to disk
ApplyShader(ShaderEditorResult)
Apply background shader from editor
ApplyCursorShader(CursorShaderEditorResult)
Apply cursor shader from editor
TestNotification
Send a test notification to verify permissions
SaveProfiles(Vec<Profile>)
Save profiles from inline editor to all windows
OpenProfile(Uuid)
Open a profile in the focused terminal window
StartCoprocess(usize)
Start a coprocess by config index on the active tab
StopCoprocess(usize)
Stop a coprocess by config index on the active tab
StartScript(usize)
Start a script by config index on the active tab
StopScript(usize)
Stop a script by config index on the active tab
OpenLogFile
Open the debug log file in the system’s default editor/viewer
SaveArrangement(String)
Save the current window layout as an arrangement
RestoreArrangement(Uuid)
Restore a saved window arrangement
DeleteArrangement(Uuid)
Delete a saved window arrangement
RenameArrangement(Uuid, String)
Rename a saved window arrangement
ForceUpdateCheck
User requested an immediate update check
InstallUpdate(String)
User requested to install the available update
IdentifyPanes
Flash pane indices on the terminal window
InstallShellIntegration
Install shell integration for the detected shell
UninstallShellIntegration
Uninstall shell integration from all shells
Trait Implementations§
Source§impl Clone for SettingsWindowAction
impl Clone for SettingsWindowAction
Source§fn clone(&self) -> SettingsWindowAction
fn clone(&self) -> SettingsWindowAction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SettingsWindowAction
impl RefUnwindSafe for SettingsWindowAction
impl Send for SettingsWindowAction
impl Sync for SettingsWindowAction
impl Unpin for SettingsWindowAction
impl UnsafeUnpin for SettingsWindowAction
impl UnwindSafe for SettingsWindowAction
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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