Struct bluenrg::gatt::EncryptionKeySize [−][src]
pub struct EncryptionKeySize(_);
Encryption key size, in bytes.
Methods
impl EncryptionKeySize
[src]
impl EncryptionKeySize
pub fn with_value(
sz: usize
) -> Result<EncryptionKeySize, EncryptionKeySizeError>
[src]
pub fn with_value(
sz: usize
) -> Result<EncryptionKeySize, EncryptionKeySizeError>
Validate the size as a valid encryption key size. Valid range is 7 to 16, inclusive.
Errors
pub fn value(&self) -> usize
[src]
pub fn value(&self) -> usize
Retrieve the key size.
Trait Implementations
impl Copy for EncryptionKeySize
[src]
impl Copy for EncryptionKeySize
impl Clone for EncryptionKeySize
[src]
impl Clone for EncryptionKeySize
fn clone(&self) -> EncryptionKeySize
[src]
fn clone(&self) -> EncryptionKeySize
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for EncryptionKeySize
[src]
impl Debug for EncryptionKeySize
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for EncryptionKeySize
[src]
impl PartialEq for EncryptionKeySize
fn eq(&self, other: &EncryptionKeySize) -> bool
[src]
fn eq(&self, other: &EncryptionKeySize) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EncryptionKeySize) -> bool
[src]
fn ne(&self, other: &EncryptionKeySize) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for EncryptionKeySize
impl Send for EncryptionKeySize
impl Sync for EncryptionKeySize
impl Sync for EncryptionKeySize