pub struct UdpNmNode(/* private fields */);
Expand description
Udp / Ethernet specific NmNode
Implementations§
Source§impl UdpNmNode
impl UdpNmNode
Sourcepub fn set_nm_msg_cycle_offset(
&self,
offset: f64,
) -> Result<(), AutosarAbstractionError>
pub fn set_nm_msg_cycle_offset( &self, offset: f64, ) -> Result<(), AutosarAbstractionError>
set the NmMsgCycleOffset
Sourcepub fn nm_msg_cycle_offset(&self) -> Option<f64>
pub fn nm_msg_cycle_offset(&self) -> Option<f64>
get the NmMsgCycleOffset
Sourcepub fn set_all_nm_messages_keep_awake(
&self,
enabled: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_all_nm_messages_keep_awake( &self, enabled: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set ot remove the allNmMessagesKeepAwake flag
If enabled
is Some
, the flag is set to the value of enabled
. If enabled
is None
, the flag is removed.
Sourcepub fn all_nm_messages_keep_awake(&self) -> Option<bool>
pub fn all_nm_messages_keep_awake(&self) -> Option<bool>
get the allNmMessagesKeepAwake flag
Trait Implementations§
Source§impl AbstractNmNode for UdpNmNode
impl AbstractNmNode for UdpNmNode
Source§type CommunicationControllerType = EthernetCommunicationController
type CommunicationControllerType = EthernetCommunicationController
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 UdpNmNode
impl AbstractionElement for UdpNmNode
impl Eq for UdpNmNode
impl StructuralPartialEq for UdpNmNode
Auto Trait Implementations§
impl Freeze for UdpNmNode
impl !RefUnwindSafe for UdpNmNode
impl Send for UdpNmNode
impl Sync for UdpNmNode
impl Unpin for UdpNmNode
impl !UnwindSafe for UdpNmNode
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.