Trait AbstractNmClusterCoupling

Source
pub trait AbstractNmClusterCoupling: AbstractionElement {
    type NmClusterType: AbstractNmCluster;

    // Provided methods
    fn add_coupled_cluster(
        &self,
        cluster: &Self::NmClusterType,
    ) -> Result<(), AutosarAbstractionError> { ... }
    fn coupled_clusters(
        &self,
    ) -> impl Iterator<Item = Self::NmClusterType> + Send + 'static { ... }
}
Expand description

The NmClusterCoupling is used to couple two NmClusters together.

AbstractNmClusterCoupling is a common interface for all bus specific NM cluster couplings and provides common functionality.

Required Associated Types§

Source

type NmClusterType: AbstractNmCluster

type of the coupled NmClusters

Provided Methods§

Source

fn add_coupled_cluster( &self, cluster: &Self::NmClusterType, ) -> Result<(), AutosarAbstractionError>

add a reference to a coupled NmCluster

Source

fn coupled_clusters( &self, ) -> impl Iterator<Item = Self::NmClusterType> + Send + 'static

iterate over all coupled NmClusters

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§