pub enum ChallengeResponseKey {
LocalChallenge(String),
YubikeyChallenge(Yubikey, String),
}Variants§
Implementations§
Source§impl ChallengeResponseKey
impl ChallengeResponseKey
pub fn get_available_yubikeys() -> Result<Vec<Yubikey>, DatabaseKeyError>
pub fn get_yubikey( serial_number: Option<u32>, ) -> Result<Yubikey, DatabaseKeyError>
Trait Implementations§
Source§impl Clone for ChallengeResponseKey
impl Clone for ChallengeResponseKey
Source§fn clone(&self) -> ChallengeResponseKey
fn clone(&self) -> ChallengeResponseKey
Returns a duplicate of the value. Read more
1.0.0 · 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 ChallengeResponseKey
impl Debug for ChallengeResponseKey
Source§impl Drop for ChallengeResponseKey
impl Drop for ChallengeResponseKey
Source§impl PartialEq for ChallengeResponseKey
impl PartialEq for ChallengeResponseKey
Source§impl Zeroize for ChallengeResponseKey
impl Zeroize for ChallengeResponseKey
impl StructuralPartialEq for ChallengeResponseKey
Auto Trait Implementations§
impl Freeze for ChallengeResponseKey
impl RefUnwindSafe for ChallengeResponseKey
impl Send for ChallengeResponseKey
impl Sync for ChallengeResponseKey
impl Unpin for ChallengeResponseKey
impl UnwindSafe for ChallengeResponseKey
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