pub enum SwComponentType {
Composition(CompositionSwComponentType),
Application(ApplicationSwComponentType),
ComplexDeviceDriver(ComplexDeviceDriverSwComponentType),
Service(ServiceSwComponentType),
SensorActuator(SensorActuatorSwComponentType),
EcuAbstraction(EcuAbstractionSwComponentType),
}
Expand description
The SwComponentType
enum represents all possible types of software components
Variants§
Composition(CompositionSwComponentType)
the component is CompositionSwComponentType
Application(ApplicationSwComponentType)
the component is ApplicationSwComponentType
ComplexDeviceDriver(ComplexDeviceDriverSwComponentType)
the component is ComplexDeviceDriverSwComponentType
Service(ServiceSwComponentType)
the component is ServiceSwComponentType
SensorActuator(SensorActuatorSwComponentType)
the component is SensorActuatorSwComponentType
EcuAbstraction(EcuAbstractionSwComponentType)
the component is EcuAbstractionSwComponentType
Trait Implementations§
Source§impl AbstractSwComponentType for SwComponentType
impl AbstractSwComponentType for SwComponentType
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 AbstractionElement for SwComponentType
impl AbstractionElement for SwComponentType
Source§impl Clone for SwComponentType
impl Clone for SwComponentType
Source§fn clone(&self) -> SwComponentType
fn clone(&self) -> SwComponentType
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 Debug for SwComponentType
impl Debug for SwComponentType
Source§impl From<ApplicationSwComponentType> for SwComponentType
impl From<ApplicationSwComponentType> for SwComponentType
Source§fn from(app: ApplicationSwComponentType) -> Self
fn from(app: ApplicationSwComponentType) -> Self
Converts to this type from the input type.
Source§impl From<ComplexDeviceDriverSwComponentType> for SwComponentType
impl From<ComplexDeviceDriverSwComponentType> for SwComponentType
Source§fn from(cdd: ComplexDeviceDriverSwComponentType) -> Self
fn from(cdd: ComplexDeviceDriverSwComponentType) -> Self
Converts to this type from the input type.
Source§impl From<CompositionSwComponentType> for SwComponentType
impl From<CompositionSwComponentType> for SwComponentType
Source§fn from(comp: CompositionSwComponentType) -> Self
fn from(comp: CompositionSwComponentType) -> 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 From<SensorActuatorSwComponentType> for SwComponentType
impl From<SensorActuatorSwComponentType> for SwComponentType
Source§fn from(sensor_actuator: SensorActuatorSwComponentType) -> Self
fn from(sensor_actuator: SensorActuatorSwComponentType) -> Self
Converts to this type from the input type.
Source§impl From<ServiceSwComponentType> for SwComponentType
impl From<ServiceSwComponentType> for SwComponentType
Source§fn from(service: ServiceSwComponentType) -> Self
fn from(service: ServiceSwComponentType) -> Self
Converts to this type from the input type.
Source§impl Hash for SwComponentType
impl Hash for SwComponentType
Source§impl PartialEq for SwComponentType
impl PartialEq for SwComponentType
Source§impl TryFrom<Element> for SwComponentType
impl TryFrom<Element> for SwComponentType
impl Eq for SwComponentType
impl StructuralPartialEq for SwComponentType
Auto Trait Implementations§
impl Freeze for SwComponentType
impl !RefUnwindSafe for SwComponentType
impl Send for SwComponentType
impl Sync for SwComponentType
impl Unpin for SwComponentType
impl !UnwindSafe for SwComponentType
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.