pub struct GeneralPurposeIPdu(/* private fields */);
Expand description
This element is used for AUTOSAR Pdus without attributes that are routed by the PduR
Implementations§
Source§impl GeneralPurposeIPdu
impl GeneralPurposeIPdu
Sourcepub fn set_category(
&self,
category: GeneralPurposeIPduCategory,
) -> Result<(), AutosarAbstractionError>
pub fn set_category( &self, category: GeneralPurposeIPduCategory, ) -> Result<(), AutosarAbstractionError>
set the category of this PDU
Sourcepub fn category(&self) -> Option<GeneralPurposeIPduCategory>
pub fn category(&self) -> Option<GeneralPurposeIPduCategory>
get the category of this PDU
Trait Implementations§
Source§impl AbstractIpdu for GeneralPurposeIPdu
impl AbstractIpdu for GeneralPurposeIPdu
Source§fn set_contained_ipdu_props(
&self,
props: Option<&ContainedIPduProps>,
) -> Result<(), AutosarAbstractionError>
fn set_contained_ipdu_props( &self, props: Option<&ContainedIPduProps>, ) -> Result<(), AutosarAbstractionError>
Source§fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
fn contained_ipdu_props(&self) -> Option<ContainedIPduProps>
get the
ContainedIPduProps
for this IPdu
Source§impl AbstractPdu for GeneralPurposeIPdu
impl AbstractPdu for GeneralPurposeIPdu
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the PDU
Source§fn pdu_triggerings(&self) -> Vec<PduTriggering>
fn pdu_triggerings(&self) -> Vec<PduTriggering>
list all
PduTriggerings
that trigger this PDUSource§impl Clone for GeneralPurposeIPdu
impl Clone for GeneralPurposeIPdu
Source§fn clone(&self) -> GeneralPurposeIPdu
fn clone(&self) -> GeneralPurposeIPdu
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 GeneralPurposeIPdu
impl Debug for GeneralPurposeIPdu
Source§impl From<GeneralPurposeIPdu> for Element
impl From<GeneralPurposeIPdu> for Element
Source§fn from(val: GeneralPurposeIPdu) -> Self
fn from(val: GeneralPurposeIPdu) -> Self
Converts to this type from the input type.
Source§impl From<GeneralPurposeIPdu> for IPdu
impl From<GeneralPurposeIPdu> for IPdu
Source§fn from(value: GeneralPurposeIPdu) -> Self
fn from(value: GeneralPurposeIPdu) -> Self
Converts to this type from the input type.
Source§impl From<GeneralPurposeIPdu> for Pdu
impl From<GeneralPurposeIPdu> for Pdu
Source§fn from(value: GeneralPurposeIPdu) -> Self
fn from(value: GeneralPurposeIPdu) -> Self
Converts to this type from the input type.
Source§impl Hash for GeneralPurposeIPdu
impl Hash for GeneralPurposeIPdu
Source§impl PartialEq for GeneralPurposeIPdu
impl PartialEq for GeneralPurposeIPdu
Source§impl TryFrom<Element> for GeneralPurposeIPdu
impl TryFrom<Element> for GeneralPurposeIPdu
impl Eq for GeneralPurposeIPdu
impl StructuralPartialEq for GeneralPurposeIPdu
Auto Trait Implementations§
impl Freeze for GeneralPurposeIPdu
impl !RefUnwindSafe for GeneralPurposeIPdu
impl Send for GeneralPurposeIPdu
impl Sync for GeneralPurposeIPdu
impl Unpin for GeneralPurposeIPdu
impl !UnwindSafe for GeneralPurposeIPdu
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.