pub struct ServiceSwComponentType(/* private fields */);
Expand description
ServiceSwComponentType
is used for configuring services for a given ECU. Instances of this class should only
be created in ECU Configuration phase for the specific purpose of the service configuration.
Use ArPackage::create_service_sw_component_type
to create a new service sw component type.
Trait Implementations§
Source§impl AbstractSwComponentType for ServiceSwComponentType
impl AbstractSwComponentType for ServiceSwComponentType
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 ServiceSwComponentType
impl AtomicSwComponentType for ServiceSwComponentType
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 ServiceSwComponentType
impl Clone for ServiceSwComponentType
Source§fn clone(&self) -> ServiceSwComponentType
fn clone(&self) -> ServiceSwComponentType
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 ServiceSwComponentType
impl Debug for ServiceSwComponentType
Source§impl From<ServiceSwComponentType> for Element
impl From<ServiceSwComponentType> for Element
Source§fn from(val: ServiceSwComponentType) -> Self
fn from(val: ServiceSwComponentType) -> 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 ServiceSwComponentType
impl Hash for ServiceSwComponentType
Source§impl PartialEq for ServiceSwComponentType
impl PartialEq for ServiceSwComponentType
Source§impl TryFrom<Element> for ServiceSwComponentType
impl TryFrom<Element> for ServiceSwComponentType
impl Eq for ServiceSwComponentType
impl StructuralPartialEq for ServiceSwComponentType
Auto Trait Implementations§
impl Freeze for ServiceSwComponentType
impl !RefUnwindSafe for ServiceSwComponentType
impl Send for ServiceSwComponentType
impl Sync for ServiceSwComponentType
impl Unpin for ServiceSwComponentType
impl !UnwindSafe for ServiceSwComponentType
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.