pub struct FlexrayArTpNode(/* private fields */);
Expand description
FlexrayArTpNode
represents a node in the Flexray Autosar Transport Protocol
A TP node (sender or receiver) provides the TP address and the connection to the topology description
Implementations§
Source§impl FlexrayArTpNode
impl FlexrayArTpNode
Sourcepub fn set_tp_address(
&self,
tp_address: Option<&TpAddress>,
) -> Result<(), AutosarAbstractionError>
pub fn set_tp_address( &self, tp_address: Option<&TpAddress>, ) -> Result<(), AutosarAbstractionError>
set or remove the TP address
if Some(value) is passed, the TP address is set to the given value, otherwise it is removed.
Sourcepub fn tp_address(&self) -> Option<TpAddress>
pub fn tp_address(&self) -> Option<TpAddress>
get the TP address
Sourcepub fn add_communication_connector(
&self,
connector: &FlexrayCommunicationConnector,
) -> Result<(), AutosarAbstractionError>
pub fn add_communication_connector( &self, connector: &FlexrayCommunicationConnector, ) -> Result<(), AutosarAbstractionError>
add a reference to a FlexrayCommunicationConnector
The connectors define the association with a PhysicalChannel
and an ECU.
In a SystemDescription
, this reference is mandatory, but in an ECUExtract
it is optional.
Up to 2 connectors can be added to a node.
Sourcepub fn communication_connectors(
&self,
) -> impl Iterator<Item = FlexrayCommunicationConnector> + Send + 'static
pub fn communication_connectors( &self, ) -> impl Iterator<Item = FlexrayCommunicationConnector> + Send + 'static
get the connectors
Trait Implementations§
Source§impl AbstractionElement for FlexrayArTpNode
impl AbstractionElement for FlexrayArTpNode
Source§impl Clone for FlexrayArTpNode
impl Clone for FlexrayArTpNode
Source§fn clone(&self) -> FlexrayArTpNode
fn clone(&self) -> FlexrayArTpNode
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 FlexrayArTpNode
impl Debug for FlexrayArTpNode
Source§impl From<FlexrayArTpNode> for Element
impl From<FlexrayArTpNode> for Element
Source§fn from(val: FlexrayArTpNode) -> Self
fn from(val: FlexrayArTpNode) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayArTpNode
impl Hash for FlexrayArTpNode
Source§impl PartialEq for FlexrayArTpNode
impl PartialEq for FlexrayArTpNode
Source§impl TryFrom<Element> for FlexrayArTpNode
impl TryFrom<Element> for FlexrayArTpNode
impl Eq for FlexrayArTpNode
impl StructuralPartialEq for FlexrayArTpNode
Auto Trait Implementations§
impl Freeze for FlexrayArTpNode
impl !RefUnwindSafe for FlexrayArTpNode
impl Send for FlexrayArTpNode
impl Sync for FlexrayArTpNode
impl Unpin for FlexrayArTpNode
impl !UnwindSafe for FlexrayArTpNode
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.