pub struct AuthenticationMethod(pub u8);
Expand description
Method of authentication used.
See also IKEV2IANA for the latest values.
Tuple Fields§
§0: u8
Implementations§
Source§impl AuthenticationMethod
impl AuthenticationMethod
Sourcepub const RsaSig: AuthenticationMethod
pub const RsaSig: AuthenticationMethod
RSA Digital Signature
Shared Key Message Integrity Code
Sourcepub const DssSig: AuthenticationMethod
pub const DssSig: AuthenticationMethod
DSS Digital Signature
Sourcepub const EcdsaSha256P256: AuthenticationMethod
pub const EcdsaSha256P256: AuthenticationMethod
ECDSA with SHA-256 on the P-256 curve
Sourcepub const EcdsaSha384P384: AuthenticationMethod
pub const EcdsaSha384P384: AuthenticationMethod
ECDSA with SHA-384 on the P-384 curve
Sourcepub const EcdsaSha512P512: AuthenticationMethod
pub const EcdsaSha512P512: AuthenticationMethod
ECDSA with SHA-512 on the P-512 curve
Sourcepub const GenericPass: AuthenticationMethod
pub const GenericPass: AuthenticationMethod
Generic Secure Password Authentication Method
Sourcepub const Null: AuthenticationMethod
pub const Null: AuthenticationMethod
NULL Authentication
Sourcepub const DigitalSig: AuthenticationMethod
pub const DigitalSig: AuthenticationMethod
Digital Signature
Sourcepub fn is_unassigned(self) -> bool
pub fn is_unassigned(self) -> bool
Test if value is in unassigned range
Sourcepub fn is_private_use(self) -> bool
pub fn is_private_use(self) -> bool
Test if value is in private use range
Trait Implementations§
Source§impl Clone for AuthenticationMethod
impl Clone for AuthenticationMethod
Source§fn clone(&self) -> AuthenticationMethod
fn clone(&self) -> AuthenticationMethod
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 AuthenticationMethod
impl Debug for AuthenticationMethod
Source§impl PartialEq for AuthenticationMethod
impl PartialEq for AuthenticationMethod
impl Copy for AuthenticationMethod
impl Eq for AuthenticationMethod
impl StructuralPartialEq for AuthenticationMethod
Auto Trait Implementations§
impl Freeze for AuthenticationMethod
impl RefUnwindSafe for AuthenticationMethod
impl Send for AuthenticationMethod
impl Sync for AuthenticationMethod
impl Unpin for AuthenticationMethod
impl UnwindSafe for AuthenticationMethod
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