pub struct LoweredRpc {
pub builtins: Vec<RpcAnnotation>,
pub custom: Vec<Annotation>,
}Expand description
Result of an RPC annotation lowering — separate lists for recognized and passed-through (unknown) annotations.
Fields§
§builtins: Vec<RpcAnnotation>Erkannte RPC-Builtins.
custom: Vec<Annotation>Not recognized (vendor-specific or an XTypes builtin).
Implementations§
Source§impl LoweredRpc
impl LoweredRpc
Sourcepub fn is_service(&self) -> bool
pub fn is_service(&self) -> bool
true if @service (with or without argument) is set.
Sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
Returns the explicit @service(name="...") value, if set.
Sourcepub fn has_oneway(&self) -> bool
pub fn has_oneway(&self) -> bool
true if the @oneway annotation is set.
Sourcepub fn interface_qos_profile(&self) -> Option<&str>
pub fn interface_qos_profile(&self) -> Option<&str>
Spec §7.10.1: returns the @RPCInterfaceQos(profile=...) argument.
Sourcepub fn dds_request_topic(&self) -> Option<&str>
pub fn dds_request_topic(&self) -> Option<&str>
Spec §7.4.2.2: returns the @DDSRequestTopic override.
Sourcepub fn dds_reply_topic(&self) -> Option<&str>
pub fn dds_reply_topic(&self) -> Option<&str>
Spec §7.4.2.2: returns the @DDSReplyTopic override.
Sourcepub fn is_rpc_request_type(&self) -> bool
pub fn is_rpc_request_type(&self) -> bool
Spec §7.3.1.4: true if @RPCRequestType is set.
Sourcepub fn is_rpc_reply_type(&self) -> bool
pub fn is_rpc_reply_type(&self) -> bool
Spec §7.3.1.4: true if @RPCReplyType is set.
Sourcepub fn is_rpc_request(&self) -> bool
pub fn is_rpc_request(&self) -> bool
Spec §7.3.1.2: true if @RPCRequest is set.
Sourcepub fn is_rpc_reply(&self) -> bool
pub fn is_rpc_reply(&self) -> bool
Spec §7.3.1.2: true if @RPCReply is set.
Trait Implementations§
Source§impl Clone for LoweredRpc
impl Clone for LoweredRpc
Source§fn clone(&self) -> LoweredRpc
fn clone(&self) -> LoweredRpc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LoweredRpc
impl Debug for LoweredRpc
Source§impl Default for LoweredRpc
impl Default for LoweredRpc
Source§fn default() -> LoweredRpc
fn default() -> LoweredRpc
Returns the “default value” for a type. Read more
Source§impl PartialEq for LoweredRpc
impl PartialEq for LoweredRpc
impl StructuralPartialEq for LoweredRpc
Auto Trait Implementations§
impl Freeze for LoweredRpc
impl RefUnwindSafe for LoweredRpc
impl Send for LoweredRpc
impl Sync for LoweredRpc
impl Unpin for LoweredRpc
impl UnsafeUnpin for LoweredRpc
impl UnwindSafe for LoweredRpc
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