pub enum AuthenticatorAttachmentEnforcement {
Fail(bool),
Update(bool),
Ignore(bool),
}Expand description
Controls how to handle a change in DynamicState::authenticator_attachment.
Note when DynamicState::authenticator_attachment is AuthenticatorAttachment::None, then it will
be updated regardless. Similarly when Authentication::authenticator_attachment is
AuthenticatorAttachment::None, it will never update DynamicState::authenticator_attachment.
Variants§
Fail(bool)
Fail the authentication ceremony if AuthenticatorAttachment is not the same.
The contained bool represents if AuthenticatorAttachment must be sent.
Update(bool)
Update DynamicState::authenticator_attachment to the sent AuthenticatorAttachment.
The contained bool represents if AuthenticatorAttachment must be sent.
Ignore(bool)
Do not update DynamicState::authenticator_attachment to the sent AuthenticatorAttachment.
The contained bool represents if AuthenticatorAttachment must be sent.
Trait Implementations§
impl Copy for AuthenticatorAttachmentEnforcement
Source§impl Default for AuthenticatorAttachmentEnforcement
impl Default for AuthenticatorAttachmentEnforcement
Source§fn default() -> Self
fn default() -> Self
Returns Self::Ignore containing false.