[−][src]Enum bluetooth_mesh::upper::PDU
Variants
Control(ControlPayload<Storage>)
Access(EncryptedAppPayload<Storage>)
Methods
impl<Storage: AsRef<[u8]>> PDU<Storage>
[src]
pub fn max_seg_len(&self) -> usize
[src]
pub fn should_segment(&self) -> bool
[src]
pub fn seg_o(&self) -> SegO
[src]
pub fn seg_n_data(&self, seg_n: SegN) -> &[u8]
[src]
Gets Segment N's data to be sent. !! THE MIC WON'T BE INCLUDED !!. Access Messages include a MIC and will have to be append to the end of the payload manually.
Panics
Panics if seg_n > seg_o
pub fn is_control(&self) -> bool
[src]
pub fn payload(&self) -> &[u8]
[src]
pub fn is_access(&self) -> bool
[src]
pub fn payload_len(&self) -> usize
[src]
pub fn mic(&self) -> Option<MIC>
[src]
pub fn total_len(&self) -> usize
[src]
Trait Implementations
impl<Storage: Clone + AsRef<[u8]>> Clone for PDU<Storage>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<Storage> RefUnwindSafe for PDU<Storage> where
Storage: RefUnwindSafe,
Storage: RefUnwindSafe,
impl<Storage> Send for PDU<Storage> where
Storage: Send,
Storage: Send,
impl<Storage> Sync for PDU<Storage> where
Storage: Sync,
Storage: Sync,
impl<Storage> Unpin for PDU<Storage> where
Storage: Unpin,
Storage: Unpin,
impl<Storage> UnwindSafe for PDU<Storage> where
Storage: UnwindSafe,
Storage: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,