[][src]Struct bluetooth_mesh::address::UnicastAddress

pub struct UnicastAddress(_);

Element Unicast Address. Each Element has one Unicast assigned to it.

Methods

impl UnicastAddress[src]

#[must_use] pub fn new(v: u16) -> UnicastAddress[src]

Creates a new UnicastAddress.

Panics

Panics if the u16 is not a valid UnicastAddress. (Panics if u16==0 || u16&UNICAST_BIT!=0)

#[must_use] pub fn from_mask_u16(v: u16) -> UnicastAddress[src]

Creates a Unicast address by masking any u16 into it.

Panics

Panics if the u16 masked equals 0.

Trait Implementations

impl Clone for UnicastAddress[src]

impl Copy for UnicastAddress[src]

impl Debug for UnicastAddress[src]

impl Eq for UnicastAddress[src]

impl From<UnicastAddress> for u16[src]

impl Hash for UnicastAddress[src]

impl Ord for UnicastAddress[src]

impl PartialEq<UnicastAddress> for UnicastAddress[src]

impl PartialOrd<UnicastAddress> for UnicastAddress[src]

impl StructuralEq for UnicastAddress[src]

impl StructuralPartialEq for UnicastAddress[src]

impl ToFromBytesEndian for UnicastAddress[src]

type AsBytesType = [u8; 2]

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

type Error = AddressError

The type returned in the event of a conversion error.

impl TryFrom<u16> for UnicastAddress[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>,