pub struct ProvidedServiceInstance(/* private fields */);
Expand description
A ProvidedServiceInstance
is a service that is provided by an ECU
Implementations§
Source§impl ProvidedServiceInstance
impl ProvidedServiceInstance
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 ProvidedServiceInstance
Sourcepub fn service_identifier(&self) -> Option<u16>
pub fn service_identifier(&self) -> Option<u16>
get the service identifier of this ProvidedServiceInstance
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 ProvidedServiceInstance
Sourcepub fn instance_identifier(&self) -> Option<u16>
pub fn instance_identifier(&self) -> Option<u16>
get the instance identifier of this ProvidedServiceInstance
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 ProvidedServiceInstance
Sourcepub fn major_version(&self) -> Option<u32>
pub fn major_version(&self) -> Option<u32>
get the major version of this ProvidedServiceInstance
Sourcepub fn set_minor_version(
&self,
minor_version: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_minor_version( &self, minor_version: u32, ) -> Result<(), AutosarAbstractionError>
set the minor version of this ProvidedServiceInstance
Sourcepub fn minor_version(&self) -> Option<u32>
pub fn minor_version(&self) -> Option<u32>
get the minor version of this ProvidedServiceInstance
Sourcepub fn create_event_handler(
&self,
name: &str,
event_group_identifier: u32,
) -> Result<EventHandler, AutosarAbstractionError>
pub fn create_event_handler( &self, name: &str, event_group_identifier: u32, ) -> Result<EventHandler, AutosarAbstractionError>
create a new EventHandler
in this ProvidedServiceInstance
Sourcepub fn event_handlers(
&self,
) -> impl Iterator<Item = EventHandler> + Send + 'static
pub fn event_handlers( &self, ) -> impl Iterator<Item = EventHandler> + Send + 'static
get the EventHandler
s in this ProvidedServiceInstance
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 ProvidedServiceInstance
The PSI may use two local unicast addresses, one each for UDP and TCP. The unicast address is used to assign the service to a specific ECU, and may not be empty.
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_server_instance_config(
&self,
config: &SomeipSdServerServiceInstanceConfig,
) -> Result<(), AutosarAbstractionError>
pub fn set_sd_server_instance_config( &self, config: &SomeipSdServerServiceInstanceConfig, ) -> Result<(), AutosarAbstractionError>
set the SD server instance configuration for this ProvidedServiceInstance
Sourcepub fn sd_server_instance_config(
&self,
) -> Option<SomeipSdServerServiceInstanceConfig>
pub fn sd_server_instance_config( &self, ) -> Option<SomeipSdServerServiceInstanceConfig>
get the SD server instance configuration for this ProvidedServiceInstance
Trait Implementations§
Source§impl Clone for ProvidedServiceInstance
impl Clone for ProvidedServiceInstance
Source§fn clone(&self) -> ProvidedServiceInstance
fn clone(&self) -> ProvidedServiceInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProvidedServiceInstance
impl Debug for ProvidedServiceInstance
Source§impl Hash for ProvidedServiceInstance
impl Hash for ProvidedServiceInstance
Source§impl PartialEq for ProvidedServiceInstance
impl PartialEq for ProvidedServiceInstance
Source§impl TryFrom<Element> for ProvidedServiceInstance
impl TryFrom<Element> for ProvidedServiceInstance
impl Eq for ProvidedServiceInstance
impl StructuralPartialEq for ProvidedServiceInstance
Auto Trait Implementations§
impl Freeze for ProvidedServiceInstance
impl !RefUnwindSafe for ProvidedServiceInstance
impl Send for ProvidedServiceInstance
impl Sync for ProvidedServiceInstance
impl Unpin for ProvidedServiceInstance
impl !UnwindSafe for ProvidedServiceInstance
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.