pub struct ServiceInstanceCollectionSet(/* private fields */);
Expand description
A ServiceInstanceCollectionSet
contains ServiceInstance
s that are provided or consumed by an ECU
Implementations§
Source§impl ServiceInstanceCollectionSet
impl ServiceInstanceCollectionSet
Sourcepub fn create_provided_service_instance(
&self,
name: &str,
service_identifier: u16,
instance_identifier: u16,
major_version: u32,
minor_version: u32,
) -> Result<ProvidedServiceInstance, AutosarAbstractionError>
pub fn create_provided_service_instance( &self, name: &str, service_identifier: u16, instance_identifier: u16, major_version: u32, minor_version: u32, ) -> Result<ProvidedServiceInstance, AutosarAbstractionError>
create a new ProvidedServiceInstance
in this ServiceInstanceCollectionSet
Sourcepub fn create_consumed_service_instance(
&self,
name: &str,
service_identifier: u16,
instance_identifier: u16,
major_version: u32,
minor_version: &str,
) -> Result<ConsumedServiceInstance, AutosarAbstractionError>
pub fn create_consumed_service_instance( &self, name: &str, service_identifier: u16, instance_identifier: u16, major_version: u32, minor_version: &str, ) -> Result<ConsumedServiceInstance, AutosarAbstractionError>
create a new ConsumedServiceInstance
in this ServiceInstanceCollectionSet
Sourcepub fn service_instances(
&self,
) -> impl Iterator<Item = ServiceInstance> + Send + 'static
pub fn service_instances( &self, ) -> impl Iterator<Item = ServiceInstance> + Send + 'static
create an iterator over all ServiceInstances
in this set
Trait Implementations§
Source§impl Clone for ServiceInstanceCollectionSet
impl Clone for ServiceInstanceCollectionSet
Source§fn clone(&self) -> ServiceInstanceCollectionSet
fn clone(&self) -> ServiceInstanceCollectionSet
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 ServiceInstanceCollectionSet
impl Debug for ServiceInstanceCollectionSet
Source§impl From<ServiceInstanceCollectionSet> for Element
impl From<ServiceInstanceCollectionSet> for Element
Source§fn from(val: ServiceInstanceCollectionSet) -> Self
fn from(val: ServiceInstanceCollectionSet) -> Self
Converts to this type from the input type.
Source§impl Hash for ServiceInstanceCollectionSet
impl Hash for ServiceInstanceCollectionSet
Source§impl PartialEq for ServiceInstanceCollectionSet
impl PartialEq for ServiceInstanceCollectionSet
Source§fn eq(&self, other: &ServiceInstanceCollectionSet) -> bool
fn eq(&self, other: &ServiceInstanceCollectionSet) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for ServiceInstanceCollectionSet
impl StructuralPartialEq for ServiceInstanceCollectionSet
Auto Trait Implementations§
impl Freeze for ServiceInstanceCollectionSet
impl !RefUnwindSafe for ServiceInstanceCollectionSet
impl Send for ServiceInstanceCollectionSet
impl Sync for ServiceInstanceCollectionSet
impl Unpin for ServiceInstanceCollectionSet
impl !UnwindSafe for ServiceInstanceCollectionSet
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.