#[repr(C)]pub struct RawRequestId {
pub writer_guid: [i8; 16],
pub sequence_number: i64,
}Expand description
Issue 2081 — upstream rmw_request_id_t, as a C or C++ request-id service
callback receives it (RawServiceRequestIdCallback).
Field for field the ABI’s rmw_request_id_t (nros/rmw_entity.h), which
the API headers re-declare under one guard. A request whose backend did not
report an id carries all zeros, the ABI’s spelling of “not reported”.
Fields§
§writer_guid: [i8; 16]The requesting client’s identity; all zero = not reported.
sequence_number: i64The client-assigned sequence number of the request.
Implementations§
Source§impl RawRequestId
impl RawRequestId
Sourcepub fn from_service_info(info: &ServiceInfo) -> Self
pub fn from_service_info(info: &ServiceInfo) -> Self
The id of info’s request, or all zeros when the backend reported none.
Source§impl RawRequestId
impl RawRequestId
Sourcepub fn for_response(info: &ServiceInfo, seq: i64) -> Self
pub fn for_response(info: &ServiceInfo, seq: i64) -> Self
Issue 2136 — the id a reply’s callback receives: seq, the id the
reply was matched on, with the writer GUID from info when the backend
reported one.
Trait Implementations§
Source§impl Clone for RawRequestId
impl Clone for RawRequestId
Source§fn clone(&self) -> RawRequestId
fn clone(&self) -> RawRequestId
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 moreimpl Copy for RawRequestId
Source§impl Debug for RawRequestId
impl Debug for RawRequestId
Source§impl Default for RawRequestId
impl Default for RawRequestId
Source§fn default() -> RawRequestId
fn default() -> RawRequestId
Returns the “default value” for a type. Read more
impl Eq for RawRequestId
Source§impl PartialEq for RawRequestId
impl PartialEq for RawRequestId
impl StructuralPartialEq for RawRequestId
Auto Trait Implementations§
impl Freeze for RawRequestId
impl RefUnwindSafe for RawRequestId
impl Send for RawRequestId
impl Sync for RawRequestId
impl Unpin for RawRequestId
impl UnsafeUnpin for RawRequestId
impl UnwindSafe for RawRequestId
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