[][src]Struct bluetooth_mesh::foundation::element::ElementComposition

pub struct ElementComposition {
    pub location: Location,
    pub sig_models: Vec<ModelIdentifier>,
    pub vendor_models: Vec<ModelIdentifier>,
}

Fields

location: Locationsig_models: Vec<ModelIdentifier>vendor_models: Vec<ModelIdentifier>

Methods

impl ElementComposition[src]

pub fn new_empty(location: Location) -> Self[src]

pub fn num_s(&self) -> u8[src]

pub fn num_v(&self) -> u8[src]

pub fn byte_len(&self) -> usize[src]

pub const fn min_byte_len() -> usize[src]

pub fn try_unpack_from(buf: &[u8]) -> Option<Self>[src]

pub fn pack_into(&self, buf: &mut [u8])[src]

pub fn add_model(&mut self, model: ModelIdentifier)[src]

Panics

Panics if a model with the same ModelIdentifier exists. Or if there are already 255 vendor or sig models.

Trait Implementations

impl Clone for ElementComposition[src]

impl Debug for ElementComposition[src]

impl Eq for ElementComposition[src]

impl Hash for ElementComposition[src]

impl Ord for ElementComposition[src]

impl PartialEq<ElementComposition> for ElementComposition[src]

impl PartialOrd<ElementComposition> for ElementComposition[src]

impl StructuralEq for ElementComposition[src]

impl StructuralPartialEq for ElementComposition[src]

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