pub struct FlexrayNmNode(/* private fields */);
Expand description
A FlexrayNmNode
represents a FlexRay
specific NmNode
.
It connects a FlexrayCommunicationController
with a NmEcu
.
Trait Implementations§
Source§impl AbstractNmNode for FlexrayNmNode
impl AbstractNmNode for FlexrayNmNode
Source§type CommunicationControllerType = FlexrayCommunicationController
type CommunicationControllerType = FlexrayCommunicationController
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 FlexrayNmNode
impl AbstractionElement for FlexrayNmNode
Source§impl Clone for FlexrayNmNode
impl Clone for FlexrayNmNode
Source§fn clone(&self) -> FlexrayNmNode
fn clone(&self) -> FlexrayNmNode
Returns a duplicate 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 moreSource§impl Debug for FlexrayNmNode
impl Debug for FlexrayNmNode
Source§impl From<FlexrayNmNode> for Element
impl From<FlexrayNmNode> for Element
Source§fn from(val: FlexrayNmNode) -> Self
fn from(val: FlexrayNmNode) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayNmNode
impl Hash for FlexrayNmNode
Source§impl PartialEq for FlexrayNmNode
impl PartialEq for FlexrayNmNode
Source§impl TryFrom<Element> for FlexrayNmNode
impl TryFrom<Element> for FlexrayNmNode
impl Eq for FlexrayNmNode
impl StructuralPartialEq for FlexrayNmNode
Auto Trait Implementations§
impl Freeze for FlexrayNmNode
impl !RefUnwindSafe for FlexrayNmNode
impl Send for FlexrayNmNode
impl Sync for FlexrayNmNode
impl Unpin for FlexrayNmNode
impl !UnwindSafe for FlexrayNmNode
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.