pub struct ClientServerInterface(/* private fields */);
Expand description
A ClientServerInterface
defines a set of operations that can be implemented by a server and called by a client
Use ArPackage::create_client_server_interface
to create a new client server interface
Implementations§
Source§impl ClientServerInterface
impl ClientServerInterface
Sourcepub fn create_possible_error(
&self,
name: &str,
error_code: u64,
) -> Result<ApplicationError, AutosarAbstractionError>
pub fn create_possible_error( &self, name: &str, error_code: u64, ) -> Result<ApplicationError, AutosarAbstractionError>
Add a possible error to the client server interface
Sourcepub fn create_operation(
&self,
name: &str,
) -> Result<ClientServerOperation, AutosarAbstractionError>
pub fn create_operation( &self, name: &str, ) -> Result<ClientServerOperation, AutosarAbstractionError>
add an operation to the client server interface
Sourcepub fn operations(
&self,
) -> impl Iterator<Item = ClientServerOperation> + Send + 'static
pub fn operations( &self, ) -> impl Iterator<Item = ClientServerOperation> + Send + 'static
iterate over all operations
Sourcepub fn possible_errors(
&self,
) -> impl Iterator<Item = ApplicationError> + Send + 'static
pub fn possible_errors( &self, ) -> impl Iterator<Item = ApplicationError> + Send + 'static
iterate over all application errors
Trait Implementations§
Source§impl AbstractPortInterface for ClientServerInterface
impl AbstractPortInterface for ClientServerInterface
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 ClientServerInterface
impl Clone for ClientServerInterface
Source§fn clone(&self) -> ClientServerInterface
fn clone(&self) -> ClientServerInterface
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 ClientServerInterface
impl Debug for ClientServerInterface
Source§impl From<ClientServerInterface> for Element
impl From<ClientServerInterface> for Element
Source§fn from(val: ClientServerInterface) -> Self
fn from(val: ClientServerInterface) -> Self
Converts to this type from the input type.
Source§impl Hash for ClientServerInterface
impl Hash for ClientServerInterface
Source§impl PartialEq for ClientServerInterface
impl PartialEq for ClientServerInterface
Source§impl TryFrom<Element> for ClientServerInterface
impl TryFrom<Element> for ClientServerInterface
impl Eq for ClientServerInterface
impl StructuralPartialEq for ClientServerInterface
Auto Trait Implementations§
impl Freeze for ClientServerInterface
impl !RefUnwindSafe for ClientServerInterface
impl Send for ClientServerInterface
impl Sync for ClientServerInterface
impl Unpin for ClientServerInterface
impl !UnwindSafe for ClientServerInterface
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.