[][src]Struct bluetooth_mesh::address::VirtualAddressHash

pub struct VirtualAddressHash(_);

Only stores the 14 bit hash of the virtual UUID. For the full 128 bit UUID, look at VirtualAddress

Methods

impl VirtualAddressHash[src]

pub fn new(address: u16) -> VirtualAddressHash[src]

Create a 14 bit VirtualAddressHash from the 16 bit input.

Panics

Panics if address > VIRTUAL_ADDRESS_HASH_MAX.

pub fn new_masked(address: u16) -> VirtualAddressHash[src]

Creates a 14 bit VirtualAddressHash by masking a u16 to a u14.

Trait Implementations

impl Clone for VirtualAddressHash[src]

impl Copy for VirtualAddressHash[src]

impl Debug for VirtualAddressHash[src]

impl Eq for VirtualAddressHash[src]

impl From<VirtualAddressHash> for u16[src]

impl Hash for VirtualAddressHash[src]

impl Ord for VirtualAddressHash[src]

impl PartialEq<VirtualAddressHash> for VirtualAddressHash[src]

impl PartialOrd<VirtualAddressHash> for VirtualAddressHash[src]

impl StructuralEq for VirtualAddressHash[src]

impl StructuralPartialEq for VirtualAddressHash[src]

impl ToFromBytesEndian for VirtualAddressHash[src]

type AsBytesType = [u8; 2]

impl<'_> TryFrom<&'_ Address> for VirtualAddressHash[src]

type Error = AddressError

The type returned in the event of a conversion error.

impl TryFrom<u16> for VirtualAddressHash[src]

type Error = AddressError

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