pub struct PinUvAuth { /* private fields */ }Expand description
Bundle of PIN/UV authentication parameter and protocol version
This ensures that the auth parameter and protocol version are always paired correctly.
Implementations§
Source§impl PinUvAuth
impl PinUvAuth
Sourcepub fn new(param: Vec<u8>, protocol: PinUvAuthProtocol) -> Self
pub fn new(param: Vec<u8>, protocol: PinUvAuthProtocol) -> Self
Create a new PIN/UV authentication bundle
§Arguments
param- The authentication parameter bytesprotocol- The protocol version used to generate the parameter
Sourcepub fn protocol(&self) -> PinUvAuthProtocol
pub fn protocol(&self) -> PinUvAuthProtocol
Get the protocol version
Sourcepub fn protocol_u8(&self) -> u8
pub fn protocol_u8(&self) -> u8
Get the protocol version as u8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PinUvAuth
impl RefUnwindSafe for PinUvAuth
impl Send for PinUvAuth
impl Sync for PinUvAuth
impl Unpin for PinUvAuth
impl UnwindSafe for PinUvAuth
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