pub struct SocketConnectionIpduIdentifier(/* private fields */);
Expand description
A SocketConnectionIpduIdentifier
is used to trigger a PDU in a SocketConnection
.
In addition to the Pdu Triggering, it also contains associated settings like the header id, timeout and collection trigger.
Implementations§
Source§impl SocketConnectionIpduIdentifier
impl SocketConnectionIpduIdentifier
Sourcepub fn socket_connection(
&self,
) -> Result<SocketConnection, AutosarAbstractionError>
pub fn socket_connection( &self, ) -> Result<SocketConnection, AutosarAbstractionError>
get the SocketConnection
containing this SocketConnectionIpduIdentifier
Sourcepub fn trigger_pdu(
&self,
pdu: &Pdu,
) -> Result<PduTriggering, AutosarAbstractionError>
pub fn trigger_pdu( &self, pdu: &Pdu, ) -> Result<PduTriggering, AutosarAbstractionError>
trigger a PDU in this SocketConnectionIpduIdentifier
, creating a PduTriggering
Sourcepub fn pdu_triggering(&self) -> Option<PduTriggering>
pub fn pdu_triggering(&self) -> Option<PduTriggering>
get the PduTriggering
associated with this SocketConnectionIpduIdentifier
Sourcepub fn set_header_id(
&self,
header_id: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_header_id( &self, header_id: u32, ) -> Result<(), AutosarAbstractionError>
set the header id for this SocketConnectionIpduIdentifier
Sourcepub fn header_id(&self) -> Option<u64>
pub fn header_id(&self) -> Option<u64>
get the header id for this SocketConnectionIpduIdentifier
Sourcepub fn set_timeout(
&self,
timeout: Option<f64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_timeout( &self, timeout: Option<f64>, ) -> Result<(), AutosarAbstractionError>
set the timeout for this SocketConnectionIpduIdentifier
Sourcepub fn set_collection_trigger(
&self,
trigger: Option<PduCollectionTrigger>,
) -> Result<(), AutosarAbstractionError>
pub fn set_collection_trigger( &self, trigger: Option<PduCollectionTrigger>, ) -> Result<(), AutosarAbstractionError>
set the collection trigger for this SocketConnectionIpduIdentifier
Sourcepub fn collection_trigger(&self) -> Option<PduCollectionTrigger>
pub fn collection_trigger(&self) -> Option<PduCollectionTrigger>
get the collection trigger for this SocketConnectionIpduIdentifier
Sourcepub fn add_routing_group(
&self,
routing_group: &SoAdRoutingGroup,
) -> Result<(), AutosarAbstractionError>
pub fn add_routing_group( &self, routing_group: &SoAdRoutingGroup, ) -> Result<(), AutosarAbstractionError>
add a reference to a SoAdRoutingGroup
to this SocketConnectionIpduIdentifier
Sourcepub fn routing_groups(
&self,
) -> impl Iterator<Item = SoAdRoutingGroup> + Send + 'static
pub fn routing_groups( &self, ) -> impl Iterator<Item = SoAdRoutingGroup> + Send + 'static
create an iterator over all SoAdRoutingGroups
referenced by this SocketConnectionIpduIdentifier
Trait Implementations§
Source§impl Clone for SocketConnectionIpduIdentifier
impl Clone for SocketConnectionIpduIdentifier
Source§fn clone(&self) -> SocketConnectionIpduIdentifier
fn clone(&self) -> SocketConnectionIpduIdentifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<SocketConnectionIpduIdentifier> for Element
impl From<SocketConnectionIpduIdentifier> for Element
Source§fn from(val: SocketConnectionIpduIdentifier) -> Self
fn from(val: SocketConnectionIpduIdentifier) -> Self
Source§impl PartialEq for SocketConnectionIpduIdentifier
impl PartialEq for SocketConnectionIpduIdentifier
Source§fn eq(&self, other: &SocketConnectionIpduIdentifier) -> bool
fn eq(&self, other: &SocketConnectionIpduIdentifier) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for SocketConnectionIpduIdentifier
impl StructuralPartialEq for SocketConnectionIpduIdentifier
Auto Trait Implementations§
impl Freeze for SocketConnectionIpduIdentifier
impl !RefUnwindSafe for SocketConnectionIpduIdentifier
impl Send for SocketConnectionIpduIdentifier
impl Sync for SocketConnectionIpduIdentifier
impl Unpin for SocketConnectionIpduIdentifier
impl !UnwindSafe for SocketConnectionIpduIdentifier
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.