pub struct EcuAbstractionSwComponentType(/* private fields */);
Expand description
The ECUAbstraction
is a special AtomicSwComponentType
that resides between a software-component
that wants to access ECU periphery and the Microcontroller Abstraction
Use ArPackage::create_ecu_abstraction_sw_component_type
to create a new ECU abstraction sw component type.
Trait Implementations§
Source§impl AbstractSwComponentType for EcuAbstractionSwComponentType
impl AbstractSwComponentType for EcuAbstractionSwComponentType
Source§fn instances(&self) -> Vec<ComponentPrototype>
fn instances(&self) -> Vec<ComponentPrototype>
iterator over the instances of the component type
Source§fn parent_compositions(&self) -> Vec<CompositionSwComponentType>
fn parent_compositions(&self) -> Vec<CompositionSwComponentType>
list all compositions containing instances of the component type
Source§fn create_r_port<T: AbstractPortInterface>(
&self,
name: &str,
port_interface: &T,
) -> Result<RPortPrototype, AutosarAbstractionError>
fn create_r_port<T: AbstractPortInterface>( &self, name: &str, port_interface: &T, ) -> Result<RPortPrototype, AutosarAbstractionError>
create a new required port with the given name and port interface
Source§fn create_p_port<T: AbstractPortInterface>(
&self,
name: &str,
port_interface: &T,
) -> Result<PPortPrototype, AutosarAbstractionError>
fn create_p_port<T: AbstractPortInterface>( &self, name: &str, port_interface: &T, ) -> Result<PPortPrototype, AutosarAbstractionError>
create a new provided port with the given name and port interface
Source§fn create_pr_port<T: AbstractPortInterface>(
&self,
name: &str,
port_interface: &T,
) -> Result<PRPortPrototype, AutosarAbstractionError>
fn create_pr_port<T: AbstractPortInterface>( &self, name: &str, port_interface: &T, ) -> Result<PRPortPrototype, AutosarAbstractionError>
create a new provided required port with the given name and port interface
Source§fn ports(&self) -> impl Iterator<Item = PortPrototype> + Send + 'static
fn ports(&self) -> impl Iterator<Item = PortPrototype> + Send + 'static
get an iterator over the ports of the component
Source§fn create_port_group(
&self,
name: &str,
) -> Result<PortGroup, AutosarAbstractionError>
fn create_port_group( &self, name: &str, ) -> Result<PortGroup, AutosarAbstractionError>
create a new port group
Source§impl AtomicSwComponentType for EcuAbstractionSwComponentType
impl AtomicSwComponentType for EcuAbstractionSwComponentType
Source§fn create_swc_internal_behavior(
&self,
name: &str,
) -> Result<SwcInternalBehavior, AutosarAbstractionError>
fn create_swc_internal_behavior( &self, name: &str, ) -> Result<SwcInternalBehavior, AutosarAbstractionError>
create an
SwcInternalBehavior
for the component Read moreSource§fn swc_internal_behaviors(
&self,
) -> impl Iterator<Item = SwcInternalBehavior> + Send + 'static
fn swc_internal_behaviors( &self, ) -> impl Iterator<Item = SwcInternalBehavior> + Send + 'static
iterate over all swc internal behaviors - typically zero or one
Source§impl Clone for EcuAbstractionSwComponentType
impl Clone for EcuAbstractionSwComponentType
Source§fn clone(&self) -> EcuAbstractionSwComponentType
fn clone(&self) -> EcuAbstractionSwComponentType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<EcuAbstractionSwComponentType> for Element
impl From<EcuAbstractionSwComponentType> for Element
Source§fn from(val: EcuAbstractionSwComponentType) -> Self
fn from(val: EcuAbstractionSwComponentType) -> Self
Converts to this type from the input type.
Source§impl From<EcuAbstractionSwComponentType> for SwComponentType
impl From<EcuAbstractionSwComponentType> for SwComponentType
Source§fn from(ecu_abstraction: EcuAbstractionSwComponentType) -> Self
fn from(ecu_abstraction: EcuAbstractionSwComponentType) -> Self
Converts to this type from the input type.
Source§impl Hash for EcuAbstractionSwComponentType
impl Hash for EcuAbstractionSwComponentType
Source§impl PartialEq for EcuAbstractionSwComponentType
impl PartialEq for EcuAbstractionSwComponentType
Source§fn eq(&self, other: &EcuAbstractionSwComponentType) -> bool
fn eq(&self, other: &EcuAbstractionSwComponentType) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for EcuAbstractionSwComponentType
impl StructuralPartialEq for EcuAbstractionSwComponentType
Auto Trait Implementations§
impl Freeze for EcuAbstractionSwComponentType
impl !RefUnwindSafe for EcuAbstractionSwComponentType
impl Send for EcuAbstractionSwComponentType
impl Sync for EcuAbstractionSwComponentType
impl Unpin for EcuAbstractionSwComponentType
impl !UnwindSafe for EcuAbstractionSwComponentType
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.