pub struct ClientServerOperation(/* private fields */);
Expand description
A ClientServerOperation
defines an operation in a ClientServerInterface
Implementations§
Source§impl ClientServerOperation
impl ClientServerOperation
Sourcepub fn create_argument<T: AbstractAutosarDataType>(
&self,
name: &str,
data_type: &T,
direction: ArgumentDirection,
) -> Result<ArgumentDataPrototype, AutosarAbstractionError>
pub fn create_argument<T: AbstractAutosarDataType>( &self, name: &str, data_type: &T, direction: ArgumentDirection, ) -> Result<ArgumentDataPrototype, AutosarAbstractionError>
Add an argument to the operation
Sourcepub fn arguments(
&self,
) -> impl Iterator<Item = ArgumentDataPrototype> + Send + 'static
pub fn arguments( &self, ) -> impl Iterator<Item = ArgumentDataPrototype> + Send + 'static
iterate over all arguments
Sourcepub fn add_possible_error(
&self,
error: &ApplicationError,
) -> Result<(), AutosarAbstractionError>
pub fn add_possible_error( &self, error: &ApplicationError, ) -> Result<(), AutosarAbstractionError>
add a reference to possible error to the operation
Sourcepub fn possible_errors(
&self,
) -> impl Iterator<Item = ApplicationError> + Send + 'static
pub fn possible_errors( &self, ) -> impl Iterator<Item = ApplicationError> + Send + 'static
Get the possible errors of the operation
Trait Implementations§
Source§impl Clone for ClientServerOperation
impl Clone for ClientServerOperation
Source§fn clone(&self) -> ClientServerOperation
fn clone(&self) -> ClientServerOperation
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 ClientServerOperation
impl Debug for ClientServerOperation
Source§impl From<ClientServerOperation> for Element
impl From<ClientServerOperation> for Element
Source§fn from(val: ClientServerOperation) -> Self
fn from(val: ClientServerOperation) -> Self
Converts to this type from the input type.
Source§impl Hash for ClientServerOperation
impl Hash for ClientServerOperation
Source§impl PartialEq for ClientServerOperation
impl PartialEq for ClientServerOperation
Source§impl TryFrom<Element> for ClientServerOperation
impl TryFrom<Element> for ClientServerOperation
impl Eq for ClientServerOperation
impl StructuralPartialEq for ClientServerOperation
Auto Trait Implementations§
impl Freeze for ClientServerOperation
impl !RefUnwindSafe for ClientServerOperation
impl Send for ClientServerOperation
impl Sync for ClientServerOperation
impl Unpin for ClientServerOperation
impl !UnwindSafe for ClientServerOperation
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.