INNER CODE UNIT · Rust
should_wink
google/OpenSK · libraries/opensk/src/lib.rs:115
pub fn should_wink(&mut self) -> bool {
self.hid.should_wink(&mut self.env)
}
pub fn can_sleep(&mut self) -> bool {
!self.should_wink() && self.state.can_sleep(&mut self.env)
}
#[cfg(feature = "ctap1")]
pub fn u2f_grant_user_presence(&mut self) {
self.state.u2f_grant_user_presence(&mut self.env)
}
#[cfg(feature = "ctap1")]
pub fn u2f_needs_user_presence(&mut self) -> bool {
self.state.u2f_needs_user_presence(&mut self.env)
}
}