pub enum RpcAnnotation {
Service {
name: Option<String>,
},
Oneway,
In,
Out,
InOut,
InterfaceQos {
profile_ref: String,
},
DdsRequestTopic(String),
DdsReplyTopic(String),
RpcRequestType,
RpcReplyType,
RpcRequest,
RpcReply,
}Expand description
Typed representation of the RPC-specific builtin annotations.
Variants§
Service
@service or @service(name="...").
Oneway
@oneway (annotation form; orthogonal to the AST oneway keyword).
In
@in (annotation form; orthogonal to ParamAttribute::In).
Out
@out.
InOut
@inout.
InterfaceQos
@RPCInterfaceQos(profile="<lib::profile>") (Spec §7.10.1).
References a QoS profile from an XML QoS library that is
applied to service endpoints (request writer/reader, reply
writer/reader).
DdsRequestTopic(String)
@DDSRequestTopic("<topic>") (Spec §7.4.2.2).
Override of the default request topic name.
DdsReplyTopic(String)
@DDSReplyTopic("<topic>") (Spec §7.4.2.2).
RpcRequestType
@RPCRequestType (Spec §7.3.1.4).
Marks an IDL struct as a pair-of-types request type.
RpcReplyType
@RPCReplyType (Spec §7.3.1.4).
RpcRequest
@RPCRequest (Spec §7.3.1.2 Enhanced).
Marks an IDL operation inputs struct.
RpcReply
@RPCReply (Spec §7.3.1.2 Enhanced).
Trait Implementations§
Source§impl Clone for RpcAnnotation
impl Clone for RpcAnnotation
Source§fn clone(&self) -> RpcAnnotation
fn clone(&self) -> RpcAnnotation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RpcAnnotation
impl Debug for RpcAnnotation
impl Eq for RpcAnnotation
Source§impl PartialEq for RpcAnnotation
impl PartialEq for RpcAnnotation
Source§fn eq(&self, other: &RpcAnnotation) -> bool
fn eq(&self, other: &RpcAnnotation) -> bool
self and other values to be equal, and is used by ==.