pub enum SecurityLevel {
Encrypted,
Authenticated,
}
Expand description
The security level required for this pairing - corresponds to the security levels defined in the Security Manager Protocol in Vol 3, Part H, Section 2.3.1
Variants§
Encrypted
Encrypted without MITM protection (unauthenticated)
Authenticated
Encrypted with MITM protection (authenticated), although this level of security does not fully protect against passive eavesdroppers
Trait Implementations§
Source§impl Clone for SecurityLevel
impl Clone for SecurityLevel
Source§fn clone(&self) -> SecurityLevel
fn clone(&self) -> SecurityLevel
Returns a copy 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 SecurityLevel
impl Debug for SecurityLevel
Source§impl From<PairingSecurityLevel> for SecurityLevel
impl From<PairingSecurityLevel> for SecurityLevel
Source§fn from(level: PairingSecurityLevel) -> Self
fn from(level: PairingSecurityLevel) -> Self
Converts to this type from the input type.
Source§impl From<SecurityLevel> for PairingSecurityLevel
impl From<SecurityLevel> for PairingSecurityLevel
Source§fn from(level: SecurityLevel) -> Self
fn from(level: SecurityLevel) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecurityLevel
impl PartialEq for SecurityLevel
impl Copy for SecurityLevel
impl StructuralPartialEq for SecurityLevel
Auto Trait Implementations§
impl Freeze for SecurityLevel
impl RefUnwindSafe for SecurityLevel
impl Send for SecurityLevel
impl Sync for SecurityLevel
impl Unpin for SecurityLevel
impl UnwindSafe for SecurityLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)