pub struct ServiceDefinition {
pub request: MessageDefinition,
pub response: MessageDefinition,
}
Expand description
An Uavcan service definition
Since a service invocation consists of two network exchange operations, the DSDL definition for a service must define two structures:
- Request part - for request transfer (client to server).
- Response part - for response transfer (server to client).
Fields§
§request: MessageDefinition
The request part - for request transfer (client to server)
response: MessageDefinition
The response part - for response transfer (server to client)
Trait Implementations§
Source§impl Clone for ServiceDefinition
impl Clone for ServiceDefinition
Source§fn clone(&self) -> ServiceDefinition
fn clone(&self) -> ServiceDefinition
Returns a copy 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 ServiceDefinition
impl Debug for ServiceDefinition
Source§impl Display for ServiceDefinition
impl Display for ServiceDefinition
Source§impl From<ServiceDefinition> for TypeDefinition
impl From<ServiceDefinition> for TypeDefinition
Source§fn from(d: ServiceDefinition) -> Self
fn from(d: ServiceDefinition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServiceDefinition
impl PartialEq for ServiceDefinition
impl Eq for ServiceDefinition
impl StructuralPartialEq for ServiceDefinition
Auto Trait Implementations§
impl Freeze for ServiceDefinition
impl RefUnwindSafe for ServiceDefinition
impl Send for ServiceDefinition
impl Sync for ServiceDefinition
impl Unpin for ServiceDefinition
impl UnwindSafe for ServiceDefinition
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