pub struct ConsumedServiceInstanceV1(/* private fields */);
Expand description
A ConsumedServiceInstanceV1
is a SD service instance that is consumed by this ECU.
This is the old V1 version of the service definition.
Implementations§
Source§impl ConsumedServiceInstanceV1
impl ConsumedServiceInstanceV1
Sourcepub fn provided_service_instance(&self) -> Option<ProvidedServiceInstanceV1>
pub fn provided_service_instance(&self) -> Option<ProvidedServiceInstanceV1>
get the ProvidedServiceInstance
referenced by this ConsumedServiceInstanceV1
Sourcepub fn create_consumed_event_group(
&self,
name: &str,
event_group_identifier: u32,
event_handler: &EventHandlerV1,
) -> Result<ConsumedEventGroupV1, AutosarAbstractionError>
pub fn create_consumed_event_group( &self, name: &str, event_group_identifier: u32, event_handler: &EventHandlerV1, ) -> Result<ConsumedEventGroupV1, AutosarAbstractionError>
create a new ConsumedEventGrup
in this ConsumedServiceInstanceV1
Sourcepub fn consumed_event_groups(
&self,
) -> impl Iterator<Item = ConsumedEventGroupV1> + Send + 'static
pub fn consumed_event_groups( &self, ) -> impl Iterator<Item = ConsumedEventGroupV1> + Send + 'static
get the ConsumedEventGroup
s in this ConsumedServiceInstanceV1
Sourcepub fn set_sd_client_config(
&self,
sd_client_config: &SdConfig,
) -> Result<(), AutosarAbstractionError>
pub fn set_sd_client_config( &self, sd_client_config: &SdConfig, ) -> Result<(), AutosarAbstractionError>
set the SD client configuration for this ConsumedServiceInstanceV1
Sourcepub fn sd_client_config(&self) -> Option<SdConfig>
pub fn sd_client_config(&self) -> Option<SdConfig>
get the SD client configuration for this ConsumedServiceInstanceV1
Trait Implementations§
Source§impl Clone for ConsumedServiceInstanceV1
impl Clone for ConsumedServiceInstanceV1
Source§fn clone(&self) -> ConsumedServiceInstanceV1
fn clone(&self) -> ConsumedServiceInstanceV1
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 ConsumedServiceInstanceV1
impl Debug for ConsumedServiceInstanceV1
Source§impl Hash for ConsumedServiceInstanceV1
impl Hash for ConsumedServiceInstanceV1
Source§impl TryFrom<Element> for ConsumedServiceInstanceV1
impl TryFrom<Element> for ConsumedServiceInstanceV1
impl Eq for ConsumedServiceInstanceV1
impl StructuralPartialEq for ConsumedServiceInstanceV1
Auto Trait Implementations§
impl Freeze for ConsumedServiceInstanceV1
impl !RefUnwindSafe for ConsumedServiceInstanceV1
impl Send for ConsumedServiceInstanceV1
impl Sync for ConsumedServiceInstanceV1
impl Unpin for ConsumedServiceInstanceV1
impl !UnwindSafe for ConsumedServiceInstanceV1
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.