pub struct Received {
pub src_alias: u16,
pub src_node: Option<NodeId>,
pub msg: Message,
}Expand description
A message received from the bus, with its source.
Returned by Node::receive.
Fields§
§src_alias: u16The sender’s 12-bit CAN alias. Use it as dest when replying.
src_node: Option<NodeId>The sender’s Node ID, if its alias mapping is known.
The node learns mappings from AMD frames, Initialization Complete and
Verified Node ID. If you need it and it is None, send
Message::VerifyNodeIdAddressed to the alias, or an AME frame.
msg: MessageThe decoded message.
Trait Implementations§
impl Eq for Received
impl StructuralPartialEq for Received
Auto Trait Implementations§
impl Freeze for Received
impl RefUnwindSafe for Received
impl Send for Received
impl Sync for Received
impl Unpin for Received
impl UnsafeUnpin for Received
impl UnwindSafe for Received
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