Trait AbstractFrame

Source
pub trait AbstractFrame: AbstractionElement {
    type FrameTriggeringType: AbstractFrameTriggering;

    // Required methods
    fn frame_triggerings(
        &self,
    ) -> impl Iterator<Item = Self::FrameTriggeringType>;
    fn map_pdu<T: AbstractPdu>(
        &self,
        gen_pdu: &T,
        start_position: u32,
        byte_order: ByteOrder,
        update_bit: Option<u32>,
    ) -> Result<PduToFrameMapping, AutosarAbstractionError>;

    // Provided method
    fn mapped_pdus(&self) -> impl Iterator<Item = PduToFrameMapping> { ... }
}
Expand description

A trait for all frame types

Required Associated Types§

Source

type FrameTriggeringType: AbstractFrameTriggering

The bus-specific frame triggering type

Required Methods§

Source

fn frame_triggerings(&self) -> impl Iterator<Item = Self::FrameTriggeringType>

Iterator over all FrameTriggerings 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>

map a PDU to the frame

Provided Methods§

Source

fn mapped_pdus(&self) -> impl Iterator<Item = PduToFrameMapping>

returns an iterator over all PDUs in the frame

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§