pub struct CanNmNode(/* private fields */);
Expand description
A CanNmNode
represents a node in a CanNmCluster
.
The node connects to a CanCommunicationController
and an NmEcu
.
Trait Implementations§
Source§impl AbstractNmNode for CanNmNode
impl AbstractNmNode for CanNmNode
Source§type CommunicationControllerType = CanCommunicationController
type CommunicationControllerType = CanCommunicationController
type of the communication controller connected to this node
Source§fn set_communication_controller(
&self,
controller: &Self::CommunicationControllerType,
) -> Result<(), AutosarAbstractionError>
fn set_communication_controller( &self, controller: &Self::CommunicationControllerType, ) -> Result<(), AutosarAbstractionError>
set the referenced
CommunicationController
Source§fn communication_controller(&self) -> Option<Self::CommunicationControllerType>
fn communication_controller(&self) -> Option<Self::CommunicationControllerType>
get the referenced
CommunicationController
Source§fn set_nm_ecu(&self, ecu: &NmEcu) -> Result<(), AutosarAbstractionError>
fn set_nm_ecu(&self, ecu: &NmEcu) -> Result<(), AutosarAbstractionError>
set the referenced
NmEcu
Source§fn set_node_id(&self, value: Option<u32>) -> Result<(), AutosarAbstractionError>
fn set_node_id(&self, value: Option<u32>) -> Result<(), AutosarAbstractionError>
set the nmNodeId
This value is optional; if it is set to Some(x) the value is created, if it is set to None the value is removed.
Source§fn set_passive_mode(
&self,
value: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_passive_mode( &self, value: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set ot remove the nmPassiveModeEnabled flag Read more
Source§fn passive_mode(&self) -> Option<bool>
fn passive_mode(&self) -> Option<bool>
get the nmPassiveModeEnabled flag
Source§fn add_rx_nm_pdu(&self, nm_pdu: &NmPdu) -> Result<(), AutosarAbstractionError>
fn add_rx_nm_pdu(&self, nm_pdu: &NmPdu) -> Result<(), AutosarAbstractionError>
add an Rx
NmPdu
Read moreSource§fn rx_nm_pdus(&self) -> impl Iterator<Item = NmPdu> + Send + 'static
fn rx_nm_pdus(&self) -> impl Iterator<Item = NmPdu> + Send + 'static
iterate over all RX
NmPdus
Source§fn add_tx_nm_pdu(&self, nm_pdu: &NmPdu) -> Result<(), AutosarAbstractionError>
fn add_tx_nm_pdu(&self, nm_pdu: &NmPdu) -> Result<(), AutosarAbstractionError>
add a Tx
NmPdu
Read moreSource§impl AbstractionElement for CanNmNode
impl AbstractionElement for CanNmNode
impl Eq for CanNmNode
impl StructuralPartialEq for CanNmNode
Auto Trait Implementations§
impl Freeze for CanNmNode
impl !RefUnwindSafe for CanNmNode
impl Send for CanNmNode
impl Sync for CanNmNode
impl Unpin for CanNmNode
impl !UnwindSafe for CanNmNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.