pub struct FlexrayTpNode(/* private fields */);
Expand description
A FlexrayTpNode
provides the TP address and the connection to the topology description in a FlexrayTpConfig
Implementations§
Source§impl FlexrayTpNode
impl FlexrayTpNode
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 FlexrayTpAddress
of the node
A TP address is mandatory for unicast nodes, but optional for multicast nodes
Setting None will remove the element
Sourcepub fn tp_address(&self) -> Option<TpAddress>
pub fn tp_address(&self) -> Option<TpAddress>
get the FlexrayTpAddress
of the node
Sourcepub fn add_communication_connector(
&self,
connector: &FlexrayCommunicationConnector,
) -> Result<(), AutosarAbstractionError>
pub fn add_communication_connector( &self, connector: &FlexrayCommunicationConnector, ) -> Result<(), AutosarAbstractionError>
add a FlexrayCommunicationConnector
to the node
The node can be associated with up to 2 connectors.
In a system description this reference is mandatory.
Sourcepub fn communication_connectors(
&self,
) -> impl Iterator<Item = FlexrayCommunicationConnector> + Send + 'static
pub fn communication_connectors( &self, ) -> impl Iterator<Item = FlexrayCommunicationConnector> + Send + 'static
iterate over all FlexrayCommunicationConnectors
of the node
Trait Implementations§
Source§impl AbstractionElement for FlexrayTpNode
impl AbstractionElement for FlexrayTpNode
Source§impl Clone for FlexrayTpNode
impl Clone for FlexrayTpNode
Source§fn clone(&self) -> FlexrayTpNode
fn clone(&self) -> FlexrayTpNode
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 FlexrayTpNode
impl Debug for FlexrayTpNode
Source§impl From<FlexrayTpNode> for Element
impl From<FlexrayTpNode> for Element
Source§fn from(val: FlexrayTpNode) -> Self
fn from(val: FlexrayTpNode) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayTpNode
impl Hash for FlexrayTpNode
Source§impl PartialEq for FlexrayTpNode
impl PartialEq for FlexrayTpNode
Source§impl TryFrom<Element> for FlexrayTpNode
impl TryFrom<Element> for FlexrayTpNode
impl Eq for FlexrayTpNode
impl StructuralPartialEq for FlexrayTpNode
Auto Trait Implementations§
impl Freeze for FlexrayTpNode
impl !RefUnwindSafe for FlexrayTpNode
impl Send for FlexrayTpNode
impl Sync for FlexrayTpNode
impl Unpin for FlexrayTpNode
impl !UnwindSafe for FlexrayTpNode
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.