pub struct CanFrame(/* private fields */);
Expand description
A frame on a CAN bus
Trait Implementations§
Source§impl AbstractFrame for CanFrame
impl AbstractFrame for CanFrame
Source§fn frame_triggerings(&self) -> Vec<CanFrameTriggering>
fn frame_triggerings(&self) -> Vec<CanFrameTriggering>
List all CanFrameTriggering
s using this frame
Source§fn map_pdu<T: AbstractPdu>(
&self,
gen_pdu: &T,
start_position: u32,
byte_order: ByteOrder,
update_bit: Option<u32>,
) -> Result<PduToFrameMapping, AutosarAbstractionError>
fn map_pdu<T: AbstractPdu>( &self, gen_pdu: &T, start_position: u32, byte_order: ByteOrder, update_bit: Option<u32>, ) -> Result<PduToFrameMapping, AutosarAbstractionError>
map a PDU to the frame
Source§type FrameTriggeringType = CanFrameTriggering
type FrameTriggeringType = CanFrameTriggering
The bus-specific frame triggering type
Source§fn mapped_pdus(
&self,
) -> impl Iterator<Item = PduToFrameMapping> + Send + 'static
fn mapped_pdus( &self, ) -> impl Iterator<Item = PduToFrameMapping> + Send + 'static
returns an iterator over all PDUs in the frame
Source§fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
fn set_length(&self, length: u32) -> Result<(), AutosarAbstractionError>
set the length of the frame
Source§impl AbstractionElement for CanFrame
impl AbstractionElement for CanFrame
impl Eq for CanFrame
impl StructuralPartialEq for CanFrame
Auto Trait Implementations§
impl Freeze for CanFrame
impl !RefUnwindSafe for CanFrame
impl Send for CanFrame
impl Sync for CanFrame
impl Unpin for CanFrame
impl !UnwindSafe for CanFrame
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.