#[repr(C)]pub struct rmw_service_t {
pub service_name: *const c_char,
pub type_name: *const c_char,
pub _reserved: [u8; 8],
pub backend_data: *mut c_void,
}Expand description
Service entity (phase-301: renamed from service_server to the upstream rmw_service_t term).
Service entities have no QoS in the nros subset (the upstream
rmw_qos_profile_services_default distinction does not generalise
across non-DDS backends — see book concepts/ros2-comparison.md).
No can_loan_messages field — service request/reply currently
always goes through take_request / send_response byte-buffer
APIs. If a future backend wants service-side lending, the
_reserved[8] block accommodates the bool + 7 padding bytes
without an ABI break.
Fields§
§service_name: *const c_charService name (borrowed; outlives the server).
type_name: *const c_charFully-qualified service type name (e.g.,
"example_interfaces/srv/AddTwoInts"). Borrowed.
_reserved: [u8; 8]Reserved for future fields; must be zero.
backend_data: *mut c_voidOpaque backend state. NULL if creation failed.
Trait Implementations§
Source§impl Clone for rmw_service_t
impl Clone for rmw_service_t
Source§fn clone(&self) -> rmw_service_t
fn clone(&self) -> rmw_service_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more