pub struct ProvidedServiceInstanceV1(/* private fields */);
Expand description
A ProvidedServiceInstanceV1
is a SD service instance that is provided by this ECU.
This is the old V1 version of the service definition.
Implementations§
Source§impl ProvidedServiceInstanceV1
impl ProvidedServiceInstanceV1
Sourcepub fn set_service_identifier(
&self,
service_identifier: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_service_identifier( &self, service_identifier: u32, ) -> Result<(), AutosarAbstractionError>
set the service identifier of this ProvidedServiceInstance
Sourcepub fn service_identifier(&self) -> Option<u32>
pub fn service_identifier(&self) -> Option<u32>
get the service identifier of this ProvidedServiceInstance
Sourcepub fn set_instance_identifier(
&self,
instance_identifier: u32,
) -> Result<(), AutosarAbstractionError>
pub fn set_instance_identifier( &self, instance_identifier: u32, ) -> Result<(), AutosarAbstractionError>
set the instance identifier of this ProvidedServiceInstance
Sourcepub fn instance_identifier(&self) -> Option<u32>
pub fn instance_identifier(&self) -> Option<u32>
get the instance identifier of this ProvidedServiceInstance
Sourcepub fn create_event_handler(
&self,
name: &str,
) -> Result<EventHandlerV1, AutosarAbstractionError>
pub fn create_event_handler( &self, name: &str, ) -> Result<EventHandlerV1, AutosarAbstractionError>
create a new EventHandlerV1
in this ProvidedServiceInstance
Sourcepub fn event_handlers(
&self,
) -> impl Iterator<Item = EventHandlerV1> + Send + 'static
pub fn event_handlers( &self, ) -> impl Iterator<Item = EventHandlerV1> + Send + 'static
get the EventHandlerV1
s in this ProvidedServiceInstance
Sourcepub fn set_sd_server_config(
&self,
sd_server_config: &SdConfig,
) -> Result<(), AutosarAbstractionError>
pub fn set_sd_server_config( &self, sd_server_config: &SdConfig, ) -> Result<(), AutosarAbstractionError>
set the SD server configuration for this ProvidedServiceInstance
Sourcepub fn sd_server_config(&self) -> Option<SdConfig>
pub fn sd_server_config(&self) -> Option<SdConfig>
get the SD server configuration for this ProvidedServiceInstance
Trait Implementations§
Source§impl Clone for ProvidedServiceInstanceV1
impl Clone for ProvidedServiceInstanceV1
Source§fn clone(&self) -> ProvidedServiceInstanceV1
fn clone(&self) -> ProvidedServiceInstanceV1
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 ProvidedServiceInstanceV1
impl Debug for ProvidedServiceInstanceV1
Source§impl Hash for ProvidedServiceInstanceV1
impl Hash for ProvidedServiceInstanceV1
Source§impl TryFrom<Element> for ProvidedServiceInstanceV1
impl TryFrom<Element> for ProvidedServiceInstanceV1
impl Eq for ProvidedServiceInstanceV1
impl StructuralPartialEq for ProvidedServiceInstanceV1
Auto Trait Implementations§
impl Freeze for ProvidedServiceInstanceV1
impl !RefUnwindSafe for ProvidedServiceInstanceV1
impl Send for ProvidedServiceInstanceV1
impl Sync for ProvidedServiceInstanceV1
impl Unpin for ProvidedServiceInstanceV1
impl !UnwindSafe for ProvidedServiceInstanceV1
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.