Trait AtomicSwComponentType

Source
pub trait AtomicSwComponentType: AbstractSwComponentType {
    // Provided methods
    fn create_swc_internal_behavior(
        &self,
        name: &str,
    ) -> Result<SwcInternalBehavior, AutosarAbstractionError> { ... }
    fn swc_internal_behaviors(
        &self,
    ) -> impl Iterator<Item = SwcInternalBehavior> + Send + 'static { ... }
}
Expand description

Shared trait identifiying atomic software components

An atomic software component is atomic in the sense that it cannot be further decomposed

Provided Methods§

Source

fn create_swc_internal_behavior( &self, name: &str, ) -> Result<SwcInternalBehavior, AutosarAbstractionError>

create an SwcInternalBehavior for the component

A component can have only one internal behavior, but since the internal behavior is a variation point, more than one internal behavior can be created. In this case the variation point settings must ensure that only one internal behavior is active.

Source

fn swc_internal_behaviors( &self, ) -> impl Iterator<Item = SwcInternalBehavior> + Send + 'static

iterate over all swc internal behaviors - typically zero or one

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§