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§
Sourcetype CommunicationControllerType: AbstractCommunicationController
type CommunicationControllerType: AbstractCommunicationController
The controller type of the CommunicationConnector
Required Methods§
Sourcefn controller(
&self,
) -> Result<Self::CommunicationControllerType, AutosarAbstractionError>
fn controller( &self, ) -> Result<Self::CommunicationControllerType, AutosarAbstractionError>
Get the controller of the CommunicationConnector
Provided Methods§
Sourcefn ecu_instance(&self) -> Result<EcuInstance, AutosarAbstractionError>
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.