pub struct FlexrayArTpConnection(/* private fields */);
Expand description
FlexrayArTpConnection
represents a connection within a FlexrayArTpChannel
The connection identifies the sender and the receiver of this particular communication.
The FlexRay
Autosar Tp module routes a Pdu through this connection.
Implementations§
Source§impl FlexrayArTpConnection
impl FlexrayArTpConnection
Sourcepub fn set_direct_tp_sdu<T: AbstractIpdu>(
&self,
direct_tp_sdu: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_direct_tp_sdu<T: AbstractIpdu>( &self, direct_tp_sdu: &T, ) -> Result<(), AutosarAbstractionError>
set the direct TP SDU
Sourcepub fn direct_tp_sdu(&self) -> Option<IPdu>
pub fn direct_tp_sdu(&self) -> Option<IPdu>
get the direct tp sdu
Sourcepub fn set_source(
&self,
source: &FlexrayArTpNode,
) -> Result<(), AutosarAbstractionError>
pub fn set_source( &self, source: &FlexrayArTpNode, ) -> Result<(), AutosarAbstractionError>
set the source of the connection
Sourcepub fn source(&self) -> Option<FlexrayArTpNode>
pub fn source(&self) -> Option<FlexrayArTpNode>
get the source
Sourcepub fn add_target(
&self,
target: &FlexrayArTpNode,
) -> Result<(), AutosarAbstractionError>
pub fn add_target( &self, target: &FlexrayArTpNode, ) -> Result<(), AutosarAbstractionError>
add a target to the connection
The connection can have multiple targets, but at least one target is required.
Sourcepub fn targets(&self) -> impl Iterator<Item = FlexrayArTpNode> + Send + 'static
pub fn targets(&self) -> impl Iterator<Item = FlexrayArTpNode> + Send + 'static
get the targets
Sourcepub fn set_reversed_tp_sdu<T: AbstractIpdu>(
&self,
reversed_tp_sdu: Option<&T>,
) -> Result<(), AutosarAbstractionError>
pub fn set_reversed_tp_sdu<T: AbstractIpdu>( &self, reversed_tp_sdu: Option<&T>, ) -> Result<(), AutosarAbstractionError>
set or remove the reversed TP SDU
If the connection supports both directions, then the reversed TP SDU is required. if Some(value) is passed, the reversed TP SDU is set to the given value, otherwise it is removed.
Sourcepub fn reversed_tp_sdu(&self) -> Option<IPdu>
pub fn reversed_tp_sdu(&self) -> Option<IPdu>
get the reversed tp sdu
Trait Implementations§
Source§impl Clone for FlexrayArTpConnection
impl Clone for FlexrayArTpConnection
Source§fn clone(&self) -> FlexrayArTpConnection
fn clone(&self) -> FlexrayArTpConnection
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 FlexrayArTpConnection
impl Debug for FlexrayArTpConnection
Source§impl From<FlexrayArTpConnection> for Element
impl From<FlexrayArTpConnection> for Element
Source§fn from(val: FlexrayArTpConnection) -> Self
fn from(val: FlexrayArTpConnection) -> Self
Converts to this type from the input type.
Source§impl Hash for FlexrayArTpConnection
impl Hash for FlexrayArTpConnection
Source§impl IdentifiableAbstractionElement for FlexrayArTpConnection
impl IdentifiableAbstractionElement for FlexrayArTpConnection
Source§impl PartialEq for FlexrayArTpConnection
impl PartialEq for FlexrayArTpConnection
Source§impl TryFrom<Element> for FlexrayArTpConnection
impl TryFrom<Element> for FlexrayArTpConnection
impl Eq for FlexrayArTpConnection
impl StructuralPartialEq for FlexrayArTpConnection
Auto Trait Implementations§
impl Freeze for FlexrayArTpConnection
impl !RefUnwindSafe for FlexrayArTpConnection
impl Send for FlexrayArTpConnection
impl Sync for FlexrayArTpConnection
impl Unpin for FlexrayArTpConnection
impl !UnwindSafe for FlexrayArTpConnection
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.