[][src]Struct bluetooth_mesh::crypto::AID

pub struct AID(_);

6 bit Application Key ID

Methods

impl AID[src]

pub fn new(aid: u8) -> AID[src]

Creates a new 6 bit AID

Panics

Panics if aid > AID_MAX (64)

pub fn with_flags(&self, low_flag: bool, high_flag: bool) -> u8[src]

pub fn from_flags(v: u8) -> (AID, bool, bool)[src]

Returns AID, low_flag (6th bit) and high_flag (7th bit).

pub fn new_masked(aid: u8) -> AID[src]

Creates a AID by masking aid to just 6 (lower) bits

Trait Implementations

impl Clone for AID[src]

impl Copy for AID[src]

impl Debug for AID[src]

impl Default for AID[src]

impl Eq for AID[src]

impl From<AID> for u8[src]

impl Hash for AID[src]

impl Ord for AID[src]

impl PartialEq<AID> for AID[src]

impl PartialOrd<AID> for AID[src]

impl StructuralEq for AID[src]

impl StructuralPartialEq for AID[src]

Auto Trait Implementations

impl RefUnwindSafe for AID

impl Send for AID

impl Sync for AID

impl Unpin for AID

impl UnwindSafe for AID

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>,