pub struct SoConIPduIdentifier(/* private fields */);
Expand description
A SoConIPduIdentifier
describes a PDU that is transported over a static socket connection.
Implementations§
Source§impl SoConIPduIdentifier
impl SoConIPduIdentifier
Sourcepub const SD_HEADER_ID: u64 = 4_294_934_784u64
pub const SD_HEADER_ID: u64 = 4_294_934_784u64
The PDU header id for SD messages must always be set to 0xFFFF_8100
Sourcepub fn set_pdu<T: AbstractPdu>(
&self,
pdu: &T,
channel: &EthernetPhysicalChannel,
) -> Result<(), AutosarAbstractionError>
pub fn set_pdu<T: AbstractPdu>( &self, pdu: &T, channel: &EthernetPhysicalChannel, ) -> Result<(), AutosarAbstractionError>
create a new PduTriggering
for the pdu and reference it in this SoConIPduIdentifier
Sourcepub fn set_header_id(
&self,
header_id: u64,
) -> Result<(), AutosarAbstractionError>
pub fn set_header_id( &self, header_id: u64, ) -> Result<(), AutosarAbstractionError>
set the header id for this SoConIPduIdentifier
Sourcepub fn set_timeout(&self, timeout: f64) -> Result<(), AutosarAbstractionError>
pub fn set_timeout(&self, timeout: f64) -> Result<(), AutosarAbstractionError>
set the timeout for this SoConIPduIdentifier
Sourcepub fn set_collection_trigger(
&self,
trigger: PduCollectionTrigger,
) -> Result<(), AutosarAbstractionError>
pub fn set_collection_trigger( &self, trigger: PduCollectionTrigger, ) -> Result<(), AutosarAbstractionError>
set the collection trigger for this SoConIPduIdentifier
Sourcepub fn pdu_triggering(&self) -> Option<PduTriggering>
pub fn pdu_triggering(&self) -> Option<PduTriggering>
get the PduTriggering
referenced by this SoConIPduIdentifier
Sourcepub fn collection_trigger(&self) -> Option<PduCollectionTrigger>
pub fn collection_trigger(&self) -> Option<PduCollectionTrigger>
get the collection trigger for this SoConIPduIdentifier
Trait Implementations§
Source§impl Clone for SoConIPduIdentifier
impl Clone for SoConIPduIdentifier
Source§fn clone(&self) -> SoConIPduIdentifier
fn clone(&self) -> SoConIPduIdentifier
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 SoConIPduIdentifier
impl Debug for SoConIPduIdentifier
Source§impl From<SoConIPduIdentifier> for Element
impl From<SoConIPduIdentifier> for Element
Source§fn from(val: SoConIPduIdentifier) -> Self
fn from(val: SoConIPduIdentifier) -> Self
Converts to this type from the input type.
Source§impl Hash for SoConIPduIdentifier
impl Hash for SoConIPduIdentifier
Source§impl PartialEq for SoConIPduIdentifier
impl PartialEq for SoConIPduIdentifier
Source§impl TryFrom<Element> for SoConIPduIdentifier
impl TryFrom<Element> for SoConIPduIdentifier
impl Eq for SoConIPduIdentifier
impl StructuralPartialEq for SoConIPduIdentifier
Auto Trait Implementations§
impl Freeze for SoConIPduIdentifier
impl !RefUnwindSafe for SoConIPduIdentifier
impl Send for SoConIPduIdentifier
impl Sync for SoConIPduIdentifier
impl Unpin for SoConIPduIdentifier
impl !UnwindSafe for SoConIPduIdentifier
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.