Struct Context
pub struct Context { /* private fields */ }Expand description
Key Lock context: watching arm and at most one active virtual lock.
Implementations§
§impl Context
impl Context
pub fn reset(&mut self)
pub fn reset(&mut self)
Clear watching and the locked key (does not emit virtual releases).
pub fn is_watching(&self) -> bool
pub fn is_watching(&self) -> bool
Whether key lock is watching for the next key to lock.
Trait Implementations§
impl Copy for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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