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§
Sourcetype NmClusterType: AbstractNmCluster
type NmClusterType: AbstractNmCluster
type of the coupled NmCluster
s
Provided Methods§
Sourcefn add_coupled_cluster(
&self,
cluster: &Self::NmClusterType,
) -> Result<(), AutosarAbstractionError>
fn add_coupled_cluster( &self, cluster: &Self::NmClusterType, ) -> Result<(), AutosarAbstractionError>
add a reference to a coupled NmCluster
Sourcefn coupled_clusters(
&self,
) -> impl Iterator<Item = Self::NmClusterType> + Send + 'static
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.