pub struct DoubleTapConfig {
pub window: Duration,
pub message: String,
pub exit_code: i32,
}Expand description
Double-tap Ctrl+C configuration.
Fields§
§window: DurationWindow for second tap.
message: StringMessage printed on first tap.
exit_code: i32Exit code on force quit.
Implementations§
Source§impl DoubleTapConfig
impl DoubleTapConfig
Sourcepub fn from_catalog() -> DoubleTapConfig
pub fn from_catalog() -> DoubleTapConfig
Build config from foundry SIGINT metadata with safe fallbacks.
Trait Implementations§
Source§impl Clone for DoubleTapConfig
impl Clone for DoubleTapConfig
Source§fn clone(&self) -> DoubleTapConfig
fn clone(&self) -> DoubleTapConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoubleTapConfig
impl Debug for DoubleTapConfig
Source§impl Default for DoubleTapConfig
impl Default for DoubleTapConfig
Source§fn default() -> DoubleTapConfig
fn default() -> DoubleTapConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DoubleTapConfig
impl RefUnwindSafe for DoubleTapConfig
impl Send for DoubleTapConfig
impl Sync for DoubleTapConfig
impl Unpin for DoubleTapConfig
impl UnsafeUnpin for DoubleTapConfig
impl UnwindSafe for DoubleTapConfig
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