pub struct ConsumedServiceInstance(/* private fields */);
Expand description
A ConsumedServiceInstance
is a service that is consumed by an ECU
Implementations§
Source§impl ConsumedServiceInstance
impl ConsumedServiceInstance
Sourcepub fn set_service_identifier(
&self,
service_identifier: u16,
) -> Result<(), AutosarAbstractionError>
pub fn set_service_identifier( &self, service_identifier: u16, ) -> Result<(), AutosarAbstractionError>
set the service identifier of this ConsumedServiceInstance
Sourcepub fn service_identifier(&self) -> Option<u16>
pub fn service_identifier(&self) -> Option<u16>
get the service identifier of this ConsumedServiceInstance
Sourcepub fn set_instance_identifier(
&self,
instance_identifier: u16,
) -> Result<(), AutosarAbstractionError>
pub fn set_instance_identifier( &self, instance_identifier: u16, ) -> Result<(), AutosarAbstractionError>
set the instance identifier of this ConsumedServiceInstance
Sourcepub fn instance_identifier(&self) -> Option<u16>
pub fn instance_identifier(&self) -> Option<u16>
get the instance identifier of this ConsumedServiceInstance
Sourcepub fn set_major_version(
&self,
major_version: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_major_version( &self, major_version: u32, ) -> Result<(), AutosarAbstractionError>
set the major version of this ConsumedServiceInstance
Sourcepub fn major_version(&self) -> Option<u32>
pub fn major_version(&self) -> Option<u32>
get the major version of this ConsumedServiceInstance
Sourcepub fn set_minor_version(
&self,
minor_version: &str,
) -> Result<(), AutosarAbstractionError>
pub fn set_minor_version( &self, minor_version: &str, ) -> Result<(), AutosarAbstractionError>
set the minor version of this ConsumedServiceInstance
The minor version can be a number or the String “ANY”.
Sourcepub fn minor_version(&self) -> Option<String>
pub fn minor_version(&self) -> Option<String>
get the minor version of this ConsumedServiceInstance
The minor version can be a number or the String “ANY”.
Sourcepub fn create_consumed_event_group(
&self,
name: &str,
event_group_identifier: u32,
) -> Result<ConsumedEventGroup, AutosarAbstractionError>
pub fn create_consumed_event_group( &self, name: &str, event_group_identifier: u32, ) -> Result<ConsumedEventGroup, AutosarAbstractionError>
create a new ConsumedEventGrup
in this ConsumedServiceInstance
Sourcepub fn consumed_event_groups(
&self,
) -> impl Iterator<Item = ConsumedEventGroup> + Send + 'static
pub fn consumed_event_groups( &self, ) -> impl Iterator<Item = ConsumedEventGroup> + Send + 'static
get the ConsumedEventGroup
s in this ConsumedServiceInstance
Sourcepub fn set_local_unicast_address(
&self,
address: &SocketAddress,
) -> Result<(), AutosarAbstractionError>
pub fn set_local_unicast_address( &self, address: &SocketAddress, ) -> Result<(), AutosarAbstractionError>
set a local unicast address for this ConsumedServiceInstance
The CSI may use two local unicast addresses, one each for UDP and TCP.
If the consumed service instance does not specify a local unicast address
because it only receives multicast messages, then the ConsumedEventGroup
must have an eventMulticastAddress.
Sourcepub fn local_unicast_addresses(
&self,
) -> impl Iterator<Item = LocalUnicastAddress> + Send + 'static
pub fn local_unicast_addresses( &self, ) -> impl Iterator<Item = LocalUnicastAddress> + Send + 'static
get the local unicast addresses
Sourcepub fn set_sd_client_instance_config(
&self,
config: &SomeipSdClientServiceInstanceConfig,
) -> Result<(), AutosarAbstractionError>
pub fn set_sd_client_instance_config( &self, config: &SomeipSdClientServiceInstanceConfig, ) -> Result<(), AutosarAbstractionError>
set the SD client instance configuration for this ConsumedServiceInstance
Sourcepub fn sd_client_instance_config(
&self,
) -> Option<SomeipSdClientServiceInstanceConfig>
pub fn sd_client_instance_config( &self, ) -> Option<SomeipSdClientServiceInstanceConfig>
get the SD client instance configuration for this ConsumedServiceInstance
Trait Implementations§
Source§impl Clone for ConsumedServiceInstance
impl Clone for ConsumedServiceInstance
Source§fn clone(&self) -> ConsumedServiceInstance
fn clone(&self) -> ConsumedServiceInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ConsumedServiceInstance
impl Debug for ConsumedServiceInstance
Source§impl Hash for ConsumedServiceInstance
impl Hash for ConsumedServiceInstance
Source§impl PartialEq for ConsumedServiceInstance
impl PartialEq for ConsumedServiceInstance
Source§impl TryFrom<Element> for ConsumedServiceInstance
impl TryFrom<Element> for ConsumedServiceInstance
impl Eq for ConsumedServiceInstance
impl StructuralPartialEq for ConsumedServiceInstance
Auto Trait Implementations§
impl Freeze for ConsumedServiceInstance
impl !RefUnwindSafe for ConsumedServiceInstance
impl Send for ConsumedServiceInstance
impl Sync for ConsumedServiceInstance
impl Unpin for ConsumedServiceInstance
impl !UnwindSafe for ConsumedServiceInstance
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.