Struct bluer::mesh::element::ReceivedDevKeyMessage
source · #[non_exhaustive]pub struct ReceivedDevKeyMessage {
pub source: u16,
pub remote: bool,
pub net_index: u16,
pub data: Vec<u8>,
}
Available on crate feature
mesh
only.Expand description
Message originated by a local model encoded with the device key of the remote node.
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.source: u16
Unicast address of the remote node-element that sent the message.
remote: bool
Device key remote origin.
The remote parameter if true indicates that the device key used to decrypt the message was from the sender. False indicates that the local nodes device key was used, and the message has permissions to modify local states.
net_index: u16
Subnet message was received on.
The net_index parameter indicates what subnet the message was received on, and if a response is required, the same subnet must be used to send the response.
data: Vec<u8>
Incoming message.
Trait Implementations§
source§impl Clone for ReceivedDevKeyMessage
impl Clone for ReceivedDevKeyMessage
source§fn clone(&self) -> ReceivedDevKeyMessage
fn clone(&self) -> ReceivedDevKeyMessage
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 ReceivedDevKeyMessage
impl RefUnwindSafe for ReceivedDevKeyMessage
impl Send for ReceivedDevKeyMessage
impl Sync for ReceivedDevKeyMessage
impl Unpin for ReceivedDevKeyMessage
impl UnwindSafe for ReceivedDevKeyMessage
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