pub struct QuitGuard { /* private fields */ }Implementations§
Source§impl QuitGuard
impl QuitGuard
pub fn new(wording: Wording) -> Self
pub fn mode(self, mode: Mode) -> Self
pub fn window(self, window: Duration) -> Self
pub fn triggers(self, triggers: &'static [Key]) -> Self
pub fn confirm(self, confirm: Confirm) -> Self
pub fn wording_mut(&mut self) -> &mut Wording
pub fn key(&mut self, key: Key, now: Instant, busy: bool) -> Guard
pub fn tick(&mut self, now: Instant) -> bool
pub fn deadline(&self) -> Option<Instant>
pub fn armed(&self) -> bool
pub fn notice(&self) -> Option<&str>
pub fn asking(&self) -> Option<&Confirm>
pub fn bar<'a>(&'a self, words: Words<'a>) -> Option<ConfirmBar<'a>>
pub fn cancel(&mut self)
Trait Implementations§
impl Eq for QuitGuard
impl StructuralPartialEq for QuitGuard
Auto Trait Implementations§
impl Freeze for QuitGuard
impl RefUnwindSafe for QuitGuard
impl Send for QuitGuard
impl Sync for QuitGuard
impl Unpin for QuitGuard
impl UnsafeUnpin for QuitGuard
impl UnwindSafe for QuitGuard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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