[][src]Struct bluetooth_mesh::crypto::key::EncryptionKey

pub struct EncryptionKey(_);

Methods

impl EncryptionKey[src]

#[must_use] pub fn new_bytes(key_bytes: [u8; 16]) -> EncryptionKey[src]

#[must_use] pub fn new(key: Key) -> EncryptionKey[src]

#[must_use] pub fn from_hex(hex: &str) -> Option<Self>[src]

#[must_use] pub const fn key(&self) -> Key[src]

Trait Implementations

impl AsRef<Key> for EncryptionKey[src]

impl Clone for EncryptionKey[src]

impl Copy for EncryptionKey[src]

impl Debug for EncryptionKey[src]

impl Eq for EncryptionKey[src]

impl From<EncryptionKey> for Key[src]

impl From<Key> for EncryptionKey[src]

impl Hash for EncryptionKey[src]

impl Ord for EncryptionKey[src]

impl PartialEq<EncryptionKey> for EncryptionKey[src]

impl PartialOrd<EncryptionKey> for EncryptionKey[src]

impl StructuralEq for EncryptionKey[src]

impl StructuralPartialEq for EncryptionKey[src]

impl<'_> TryFrom<&'_ [u8]> for EncryptionKey[src]

type Error = TryFromSliceError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,