SignalPdu

Trait SignalPdu 

Source
pub trait SignalPdu: AbstractPdu {
    // Required methods
    fn map_signal(
        &self,
        signal: &ISignal,
        start_position: u32,
        byte_order: ByteOrder,
        update_bit: Option<u32>,
        transfer_property: TransferProperty,
    ) -> Result<ISignalToIPduMapping, AutosarAbstractionError>;
    fn map_signal_group(
        &self,
        signal_group: &ISignalGroup,
    ) -> Result<ISignalToIPduMapping, AutosarAbstractionError>;

    // Provided method
    fn mapped_signals(
        &self,
    ) -> impl Iterator<Item = ISignalToIPduMapping> + Send + use<Self> { ... }
}
Expand description

Trait for PDUs that can contain signals, i.e., ISignalIPdu and NmPdu

Required Methods§

Source

fn map_signal( &self, signal: &ISignal, start_position: u32, byte_order: ByteOrder, update_bit: Option<u32>, transfer_property: TransferProperty, ) -> Result<ISignalToIPduMapping, AutosarAbstractionError>

map a signal to the ISignalIPdu or NmPdu

If this signal is part of a signal group, then the group must be mapped first

Source

fn map_signal_group( &self, signal_group: &ISignalGroup, ) -> Result<ISignalToIPduMapping, AutosarAbstractionError>

map a signal group to the PDU

Provided Methods§

Source

fn mapped_signals( &self, ) -> impl Iterator<Item = ISignalToIPduMapping> + Send + use<Self>

returns an iterator over all signals and signal groups mapped to the PDU

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§