pub struct SenderReceiverInterface(/* private fields */);
Expand description
A SenderReceiverInterface
defines a set of data elements that can be sent and received
Use ArPackage::create_sender_receiver_interface
to create a new sender receiver interface
Implementations§
Source§impl SenderReceiverInterface
impl SenderReceiverInterface
Sourcepub fn create_data_element<T: AbstractAutosarDataType>(
&self,
name: &str,
data_type: &T,
) -> Result<VariableDataPrototype, AutosarAbstractionError>
pub fn create_data_element<T: AbstractAutosarDataType>( &self, name: &str, data_type: &T, ) -> Result<VariableDataPrototype, AutosarAbstractionError>
Add a new data element to the sender receiver interface
Sourcepub fn data_elements(
&self,
) -> impl Iterator<Item = VariableDataPrototype> + Send + 'static
pub fn data_elements( &self, ) -> impl Iterator<Item = VariableDataPrototype> + Send + 'static
iterate over all data elements
Trait Implementations§
Source§impl AbstractPortInterface for SenderReceiverInterface
impl AbstractPortInterface for SenderReceiverInterface
Source§fn set_is_service(
&self,
is_service: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_is_service( &self, is_service: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Set the isService property for this port interface
Source§fn is_service(&self) -> Option<bool>
fn is_service(&self) -> Option<bool>
Get the isService property for this port interface
Source§impl Clone for SenderReceiverInterface
impl Clone for SenderReceiverInterface
Source§fn clone(&self) -> SenderReceiverInterface
fn clone(&self) -> SenderReceiverInterface
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 SenderReceiverInterface
impl Debug for SenderReceiverInterface
Source§impl From<SenderReceiverInterface> for Element
impl From<SenderReceiverInterface> for Element
Source§fn from(val: SenderReceiverInterface) -> Self
fn from(val: SenderReceiverInterface) -> Self
Converts to this type from the input type.
Source§impl Hash for SenderReceiverInterface
impl Hash for SenderReceiverInterface
Source§impl PartialEq for SenderReceiverInterface
impl PartialEq for SenderReceiverInterface
Source§impl TryFrom<Element> for SenderReceiverInterface
impl TryFrom<Element> for SenderReceiverInterface
impl Eq for SenderReceiverInterface
impl StructuralPartialEq for SenderReceiverInterface
Auto Trait Implementations§
impl Freeze for SenderReceiverInterface
impl !RefUnwindSafe for SenderReceiverInterface
impl Send for SenderReceiverInterface
impl Sync for SenderReceiverInterface
impl Unpin for SenderReceiverInterface
impl !UnwindSafe for SenderReceiverInterface
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.