pub struct EcucModuleDef(/* private fields */);
Expand description
The EcucModuleDef
is a container for the definition of a single base software module
Implementations§
Source§impl EcucModuleDef
impl EcucModuleDef
Sourcepub fn create_choice_container_def(
&self,
name: &str,
) -> Result<EcucChoiceContainerDef, AutosarAbstractionError>
pub fn create_choice_container_def( &self, name: &str, ) -> Result<EcucChoiceContainerDef, AutosarAbstractionError>
create a new EcucChoiceContainerDef
in the module
Sourcepub fn create_param_conf_container_def(
&self,
name: &str,
) -> Result<EcucParamConfContainerDef, AutosarAbstractionError>
pub fn create_param_conf_container_def( &self, name: &str, ) -> Result<EcucParamConfContainerDef, AutosarAbstractionError>
create a new EcucParamConfContainerDef
in the module
Sourcepub fn containers(
&self,
) -> impl Iterator<Item = EcucContainerDef> + Send + 'static
pub fn containers( &self, ) -> impl Iterator<Item = EcucContainerDef> + Send + 'static
iterate over all containers in the module
Sourcepub fn set_api_service_prefix(
&self,
prefix: Option<&str>,
) -> Result<(), AutosarAbstractionError>
pub fn set_api_service_prefix( &self, prefix: Option<&str>, ) -> Result<(), AutosarAbstractionError>
set or remove the apiServicePrefix for the module
for CDD modules the short name of the module is always “CDD”, so this attribute is needed to define the prefix for the API services
Sourcepub fn api_service_prefix(&self) -> Option<String>
pub fn api_service_prefix(&self) -> Option<String>
get the apiServicePrefix for the module
for CDD modules the short name of the module is always “CDD”, so this attribute is needed to define the prefix for the API services
Sourcepub fn set_supported_config_variants(
&self,
variants: &[EcucConfigurationVariant],
) -> Result<(), AutosarAbstractionError>
pub fn set_supported_config_variants( &self, variants: &[EcucConfigurationVariant], ) -> Result<(), AutosarAbstractionError>
set the supported configuration variants for the module
Sourcepub fn supported_config_variants(&self) -> Vec<EcucConfigurationVariant>
pub fn supported_config_variants(&self) -> Vec<EcucConfigurationVariant>
get the supported configuration variants for the module
Sourcepub fn set_post_build_variant_support(
&self,
support: Option<bool>,
) -> Result<(), AutosarAbstractionError>
pub fn set_post_build_variant_support( &self, support: Option<bool>, ) -> Result<(), AutosarAbstractionError>
set or remove the post build variant support attribute
Sourcepub fn post_build_variant_support(&self) -> Option<bool>
pub fn post_build_variant_support(&self) -> Option<bool>
get the post build variant support attribute
Sourcepub fn set_category(
&self,
category: Option<EcucModuleDefCategory>,
) -> Result<(), AutosarAbstractionError>
pub fn set_category( &self, category: Option<EcucModuleDefCategory>, ) -> Result<(), AutosarAbstractionError>
set or remove the category of the module definition
Sourcepub fn category(&self) -> Option<EcucModuleDefCategory>
pub fn category(&self) -> Option<EcucModuleDefCategory>
get the category of the module definition
Sourcepub fn set_refined_module_def(
&self,
refined_module_def: Option<&EcucModuleDef>,
) -> Result<(), AutosarAbstractionError>
pub fn set_refined_module_def( &self, refined_module_def: Option<&EcucModuleDef>, ) -> Result<(), AutosarAbstractionError>
set or remove the reference to a refined standard module
This reference is only used if the category is VendorSpecificModuleDefinition
Sourcepub fn refined_module_def(&self) -> Option<EcucModuleDef>
pub fn refined_module_def(&self) -> Option<EcucModuleDef>
get the reference to a refined standard module
This reference is only used if the category is VendorSpecificModuleDefinition
Trait Implementations§
Source§impl AbstractionElement for EcucModuleDef
impl AbstractionElement for EcucModuleDef
Source§impl Clone for EcucModuleDef
impl Clone for EcucModuleDef
Source§fn clone(&self) -> EcucModuleDef
fn clone(&self) -> EcucModuleDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EcucModuleDef
impl Debug for EcucModuleDef
Source§impl EcucDefinitionElement for EcucModuleDef
impl EcucDefinitionElement for EcucModuleDef
Source§fn set_lower_multiplicity(
&self,
lower_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_lower_multiplicity( &self, lower_multiplicity: Option<u32>, ) -> Result<(), AutosarAbstractionError>
Source§fn lower_multiplicity(&self) -> Option<u32>
fn lower_multiplicity(&self) -> Option<u32>
Source§fn set_upper_multiplicity(
&self,
upper_multiplicity: Option<u32>,
) -> Result<(), AutosarAbstractionError>
fn set_upper_multiplicity( &self, upper_multiplicity: Option<u32>, ) -> Result<(), AutosarAbstractionError>
Source§fn upper_multiplicity(&self) -> Option<u32>
fn upper_multiplicity(&self) -> Option<u32>
Source§fn set_upper_multiplicity_infinite(
&self,
infinite: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_upper_multiplicity_infinite( &self, infinite: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Source§fn upper_multiplicity_infinite(&self) -> Option<bool>
fn upper_multiplicity_infinite(&self) -> Option<bool>
Source§impl From<EcucModuleDef> for Element
impl From<EcucModuleDef> for Element
Source§fn from(val: EcucModuleDef) -> Self
fn from(val: EcucModuleDef) -> Self
Source§impl Hash for EcucModuleDef
impl Hash for EcucModuleDef
Source§impl PartialEq for EcucModuleDef
impl PartialEq for EcucModuleDef
Source§impl TryFrom<Element> for EcucModuleDef
impl TryFrom<Element> for EcucModuleDef
impl Eq for EcucModuleDef
impl StructuralPartialEq for EcucModuleDef
Auto Trait Implementations§
impl Freeze for EcucModuleDef
impl !RefUnwindSafe for EcucModuleDef
impl Send for EcucModuleDef
impl Sync for EcucModuleDef
impl Unpin for EcucModuleDef
impl !UnwindSafe for EcucModuleDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.