Trait AbstractCommunicationConnector

Source
pub trait AbstractCommunicationConnector: AbstractionElement {
    type CommunicationControllerType: AbstractCommunicationController;

    // Required method
    fn controller(
        &self,
    ) -> Result<Self::CommunicationControllerType, AutosarAbstractionError>;

    // Provided method
    fn ecu_instance(&self) -> Result<EcuInstance, AutosarAbstractionError> { ... }
}
Expand description

A trait for all communication connectors

Required Associated Types§

Source

type CommunicationControllerType: AbstractCommunicationController

The controller type of the CommunicationConnector

Required Methods§

Source

fn controller( &self, ) -> Result<Self::CommunicationControllerType, AutosarAbstractionError>

Get the controller of the CommunicationConnector

Provided Methods§

Source

fn ecu_instance(&self) -> Result<EcuInstance, AutosarAbstractionError>

Get the EcuInstance that contains this CommunicationConnector

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§