Struct bluer::mesh::element::ReceivedMessage
source · #[non_exhaustive]pub struct ReceivedMessage {
pub key_index: u16,
pub source: u16,
pub destination: u16,
pub data: Vec<u8>,
}
Available on crate feature
mesh
only.Expand description
A message addressed to the application element.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key_index: u16
Index of application key used to decode the incoming message.
The same key_index should be used by the application when sending a response to this message (in case a response is expected).
source: u16
Unicast address of the remote node-element that sent the message.
destination: u16
The destination address of the received message.
data: Vec<u8>
Incoming message.
Trait Implementations§
source§impl Clone for ReceivedMessage
impl Clone for ReceivedMessage
source§fn clone(&self) -> ReceivedMessage
fn clone(&self) -> ReceivedMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ReceivedMessage
impl RefUnwindSafe for ReceivedMessage
impl Send for ReceivedMessage
impl Sync for ReceivedMessage
impl Unpin for ReceivedMessage
impl UnwindSafe for ReceivedMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more