Struct WindowsSettingsDefaultTerminalApplicationGuard
pub struct WindowsSettingsDefaultTerminalApplicationGuard<R: Registry> {
pub(crate) old_windows_terminal_console: Option<String>,
pub(crate) old_windows_terminal_terminal: Option<String>,
pub(crate) registry: R,
}Expand description
Guard storing previous/old DelegationConsole and DelegationTerminal registry values.
Configures conhost.exe as the default terminal application
and reverts to the original configuration when being dropped.
Fields§
§old_windows_terminal_console: Option<String>Old DelegationConsole registry value
old_windows_terminal_terminal: Option<String>Old DelegationTerminal registry value
registry: RRegistry operations trait
Implementations§
§impl<R: Registry> WindowsSettingsDefaultTerminalApplicationGuard<R>
impl<R: Registry> WindowsSettingsDefaultTerminalApplicationGuard<R>
pub fn new_with_registry(registry: R) -> Self
pub fn new_with_registry(registry: R) -> Self
§impl WindowsSettingsDefaultTerminalApplicationGuard<DefaultRegistry>
impl WindowsSettingsDefaultTerminalApplicationGuard<DefaultRegistry>
pub fn new() -> Self
pub fn new() -> Self
Create a new guard with production registry operations
Trait Implementations§
§impl<R> Default for WindowsSettingsDefaultTerminalApplicationGuard<R>
impl<R> Default for WindowsSettingsDefaultTerminalApplicationGuard<R>
Auto Trait Implementations§
impl<R> Freeze for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: Freeze,
impl<R> RefUnwindSafe for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: RefUnwindSafe,
impl<R> Send for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: Send,
impl<R> Sync for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: Sync,
impl<R> Unpin for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: Unpin,
impl<R> UnwindSafe for WindowsSettingsDefaultTerminalApplicationGuard<R>where
R: UnwindSafe,
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
Mutably borrows from an owned value. Read more