pub struct CanTpNode(/* private fields */);Expand description
A CanTpNode provides the TP address and the connection to the topology description in a CanTpConfig
Implementations§
Source§impl CanTpNode
impl CanTpNode
Sourcepub fn set_address(
&self,
address: &CanTpAddress,
) -> Result<(), AutosarAbstractionError>
pub fn set_address( &self, address: &CanTpAddress, ) -> Result<(), AutosarAbstractionError>
set the CanTpAddress of this Node
Sourcepub fn address(&self) -> Option<CanTpAddress>
pub fn address(&self) -> Option<CanTpAddress>
get the CanTpAddress of this Node
Sourcepub fn set_connector(
&self,
connector: &CanCommunicationConnector,
) -> Result<(), AutosarAbstractionError>
pub fn set_connector( &self, connector: &CanCommunicationConnector, ) -> Result<(), AutosarAbstractionError>
set the reference to a CanCommunicationConnector of an ECU and a CanPhysicalChannel
The connector connects the ECU to the physical channel, so by setting this reference, the
ECU is also connected to the CanTpNode
Sourcepub fn connector(&self) -> Option<CanCommunicationConnector>
pub fn connector(&self) -> Option<CanCommunicationConnector>
get the CanCommunicationConnector of this Node
Trait Implementations§
Source§impl AbstractionElement for CanTpNode
impl AbstractionElement for CanTpNode
impl Eq for CanTpNode
impl StructuralPartialEq for CanTpNode
Auto Trait Implementations§
impl Freeze for CanTpNode
impl !RefUnwindSafe for CanTpNode
impl Send for CanTpNode
impl Sync for CanTpNode
impl Unpin for CanTpNode
impl !UnwindSafe for CanTpNode
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.