Struct bluenrg::gatt::EncryptionKeySize[][src]

pub struct EncryptionKeySize(_);

Encryption key size, in bytes.

Methods

impl EncryptionKeySize
[src]

Validate the size as a valid encryption key size. Valid range is 7 to 16, inclusive.

Errors

  • TooShort if the provided size is less than 7.
  • TooLong if the provided size is greater than 16.

Retrieve the key size.

Trait Implementations

impl Copy for EncryptionKeySize
[src]

impl Clone for EncryptionKeySize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for EncryptionKeySize
[src]

Formats the value using the given formatter. Read more

impl PartialEq for EncryptionKeySize
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations