pub struct FlexrayTpConnection(/* private fields */);
Expand description
A FlexrayTpConnection
defines a connection between FlexrayTpNodes
Implementations§
Source§impl FlexrayTpConnection
impl FlexrayTpConnection
Sourcepub fn set_transmitter(
&self,
transmitter: &FlexrayTpNode,
) -> Result<(), AutosarAbstractionError>
pub fn set_transmitter( &self, transmitter: &FlexrayTpNode, ) -> Result<(), AutosarAbstractionError>
set the transmitter of the connection
Sourcepub fn transmitter(&self) -> Option<FlexrayTpNode>
pub fn transmitter(&self) -> Option<FlexrayTpNode>
get the transmitter of the connection
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 of the connection
Sourcepub fn direct_tp_sdu(&self) -> Option<IPdu>
pub fn direct_tp_sdu(&self) -> Option<IPdu>
get the direct TP SDU of the connection
Sourcepub fn set_connection_control(
&self,
connection_control: &FlexrayTpConnectionControl,
) -> Result<(), AutosarAbstractionError>
pub fn set_connection_control( &self, connection_control: &FlexrayTpConnectionControl, ) -> Result<(), AutosarAbstractionError>
set the connection control of the connection
Sourcepub fn connection_control(&self) -> Option<FlexrayTpConnectionControl>
pub fn connection_control(&self) -> Option<FlexrayTpConnectionControl>
get the connection control of the connection
Sourcepub fn add_receiver(
&self,
receiver: &FlexrayTpNode,
) -> Result<(), AutosarAbstractionError>
pub fn add_receiver( &self, receiver: &FlexrayTpNode, ) -> Result<(), AutosarAbstractionError>
add a receiver to the connection
Sourcepub fn receivers(&self) -> impl Iterator<Item = FlexrayTpNode> + Send + 'static
pub fn receivers(&self) -> impl Iterator<Item = FlexrayTpNode> + Send + 'static
iterate over all receivers of the connection
Sourcepub fn set_reversed_tp_sdu<T: AbstractIpdu>(
&self,
reversed_tp_sdu: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_reversed_tp_sdu<T: AbstractIpdu>( &self, reversed_tp_sdu: &T, ) -> Result<(), AutosarAbstractionError>
set the reversed TP SDU of the connection This is used if the connection supports both sending and receiving
Sourcepub fn reversed_tp_sdu(&self) -> Option<IPdu>
pub fn reversed_tp_sdu(&self) -> Option<IPdu>
get the reversed TP SDU of the connection
Sourcepub fn set_tx_pdu_pool(
&self,
tx_pdu_pool: &FlexrayTpPduPool,
) -> Result<(), AutosarAbstractionError>
pub fn set_tx_pdu_pool( &self, tx_pdu_pool: &FlexrayTpPduPool, ) -> Result<(), AutosarAbstractionError>
set the TX FlexrayTpPduPool
of the connection
Sourcepub fn tx_pdu_pool(&self) -> Option<FlexrayTpPduPool>
pub fn tx_pdu_pool(&self) -> Option<FlexrayTpPduPool>
get the TX FlexrayTpPduPool
of the connection
Sourcepub fn set_rx_pdu_pool(
&self,
rx_pdu_pool: &FlexrayTpPduPool,
) -> Result<(), AutosarAbstractionError>
pub fn set_rx_pdu_pool( &self, rx_pdu_pool: &FlexrayTpPduPool, ) -> Result<(), AutosarAbstractionError>
set the RX FlexrayTpPduPool
of the connection
Sourcepub fn rx_pdu_pool(&self) -> Option<FlexrayTpPduPool>
pub fn rx_pdu_pool(&self) -> Option<FlexrayTpPduPool>
get the RX FlexrayTpPduPool
of the connection
Sourcepub fn set_multicast_address(
&self,
multicast_address: Option<&TpAddress>,
) -> Result<(), AutosarAbstractionError>
pub fn set_multicast_address( &self, multicast_address: Option<&TpAddress>, ) -> Result<(), AutosarAbstractionError>
set the multicast TpAddress
of the connection
This element is optional; setting None will remove the element
Sourcepub fn multicast_address(&self) -> Option<TpAddress>
pub fn multicast_address(&self) -> Option<TpAddress>
get the multicast TpAddress
of the connection
Trait Implementations§
Source§impl Clone for FlexrayTpConnection
impl Clone for FlexrayTpConnection
Source§fn clone(&self) -> FlexrayTpConnection
fn clone(&self) -> FlexrayTpConnection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FlexrayTpConnection
impl Debug for FlexrayTpConnection
Source§impl From<FlexrayTpConnection> for Element
impl From<FlexrayTpConnection> for Element
Source§fn from(val: FlexrayTpConnection) -> Self
fn from(val: FlexrayTpConnection) -> Self
Source§impl Hash for FlexrayTpConnection
impl Hash for FlexrayTpConnection
Source§impl IdentifiableAbstractionElement for FlexrayTpConnection
impl IdentifiableAbstractionElement for FlexrayTpConnection
Source§impl PartialEq for FlexrayTpConnection
impl PartialEq for FlexrayTpConnection
Source§impl TryFrom<Element> for FlexrayTpConnection
impl TryFrom<Element> for FlexrayTpConnection
impl Eq for FlexrayTpConnection
impl StructuralPartialEq for FlexrayTpConnection
Auto Trait Implementations§
impl Freeze for FlexrayTpConnection
impl !RefUnwindSafe for FlexrayTpConnection
impl Send for FlexrayTpConnection
impl Sync for FlexrayTpConnection
impl Unpin for FlexrayTpConnection
impl !UnwindSafe for FlexrayTpConnection
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
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
key
and return true
if they are equal.