pub struct GeneralPurposePdu(/* private fields */);
Expand description
This element is used for AUTOSAR Pdus without additional attributes that are routed by a bus interface
Implementations§
Source§impl GeneralPurposePdu
impl GeneralPurposePdu
Sourcepub fn set_category(
&self,
category: GeneralPurposePduCategory,
) -> Result<(), AutosarAbstractionError>
pub fn set_category( &self, category: GeneralPurposePduCategory, ) -> Result<(), AutosarAbstractionError>
set the category of this PDU
Sourcepub fn category(&self) -> Option<GeneralPurposePduCategory>
pub fn category(&self) -> Option<GeneralPurposePduCategory>
get the category of this PDU
Trait Implementations§
Source§impl AbstractPdu for GeneralPurposePdu
impl AbstractPdu for GeneralPurposePdu
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 GeneralPurposePdu
impl Clone for GeneralPurposePdu
Source§fn clone(&self) -> GeneralPurposePdu
fn clone(&self) -> GeneralPurposePdu
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 GeneralPurposePdu
impl Debug for GeneralPurposePdu
Source§impl From<GeneralPurposePdu> for Element
impl From<GeneralPurposePdu> for Element
Source§fn from(val: GeneralPurposePdu) -> Self
fn from(val: GeneralPurposePdu) -> Self
Converts to this type from the input type.
Source§impl From<GeneralPurposePdu> for Pdu
impl From<GeneralPurposePdu> for Pdu
Source§fn from(value: GeneralPurposePdu) -> Self
fn from(value: GeneralPurposePdu) -> Self
Converts to this type from the input type.
Source§impl Hash for GeneralPurposePdu
impl Hash for GeneralPurposePdu
Source§impl PartialEq for GeneralPurposePdu
impl PartialEq for GeneralPurposePdu
Source§impl TryFrom<Element> for GeneralPurposePdu
impl TryFrom<Element> for GeneralPurposePdu
impl Eq for GeneralPurposePdu
impl StructuralPartialEq for GeneralPurposePdu
Auto Trait Implementations§
impl Freeze for GeneralPurposePdu
impl !RefUnwindSafe for GeneralPurposePdu
impl Send for GeneralPurposePdu
impl Sync for GeneralPurposePdu
impl Unpin for GeneralPurposePdu
impl !UnwindSafe for GeneralPurposePdu
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.