pub struct TerminalGuard;Expand description
RAII guard that restores the terminal on drop.
Lives on the stack in cmd_run; cleanup fires even on panic or early exit.
Implementations§
Source§impl TerminalGuard
impl TerminalGuard
Trait Implementations§
Source§impl Default for TerminalGuard
impl Default for TerminalGuard
Source§fn default() -> TerminalGuard
fn default() -> TerminalGuard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TerminalGuard
impl RefUnwindSafe for TerminalGuard
impl Send for TerminalGuard
impl Sync for TerminalGuard
impl Unpin for TerminalGuard
impl UnsafeUnpin for TerminalGuard
impl UnwindSafe for TerminalGuard
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