[][src]Struct bluetooth_mesh::lower::SegmentHeader

pub struct SegmentHeader {
    pub flag: bool,
    pub seq_zero: SeqZero,
    pub seg_o: SegO,
    pub seg_n: SegN,
}

Generic Segment Header for both segmented Access and Control PDUs. Flag is usually SZMIC or RFU.

Fields

flag: boolseq_zero: SeqZeroseg_o: SegOseg_n: SegN

Methods

impl SegmentHeader[src]

#[must_use] pub fn new(flag: bool, seq_zero: SeqZero, seg_o: SegO, seg_n: SegN) -> Self[src]

Creates a new segment header. flag is usually OBO or SZMIC.

#[must_use] pub fn pack_into_u24(&self) -> U24[src]

#[must_use] pub fn unpack_from_u24(b: U24) -> Self[src]

Trait Implementations

impl Clone for SegmentHeader[src]

impl Copy for SegmentHeader[src]

impl Debug for SegmentHeader[src]

impl Eq for SegmentHeader[src]

impl Hash for SegmentHeader[src]

impl Ord for SegmentHeader[src]

impl PartialEq<SegmentHeader> for SegmentHeader[src]

impl PartialOrd<SegmentHeader> for SegmentHeader[src]

impl StructuralEq for SegmentHeader[src]

impl StructuralPartialEq for SegmentHeader[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>,