pub struct ServiceInfo {
pub source_timestamp: Option<Time>,
pub received_timestamp: Option<Time>,
pub request_id: Option<RequestId>,
}Expand description
Metadata about one received service request — rclrs’s ServiceInfo.
See the module docs for which backend fills which field. A field a
backend cannot report is None; it is never a zero standing in for one.
Fields§
§source_timestamp: Option<Time>When the client sent the request, on the CLIENT’s clock.
received_timestamp: Option<Time>When this server received the request, on the server’s clock.
request_id: Option<RequestId>Who sent the request: client GID plus client sequence number.
Implementations§
Source§impl ServiceInfo
impl ServiceInfo
Sourcepub const NOT_REPORTED: Self
pub const NOT_REPORTED: Self
Nothing reported — what a backend with no per-request metadata hands every callback.
Sourcepub const fn is_reported(&self) -> bool
pub const fn is_reported(&self) -> bool
Whether the backend reported ANY field for this request.
The Rust spelling of the C++ MessageInfo::is_reported(): false means
“this backend said nothing”, which is a different statement from any
particular field value.
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§fn clone(&self) -> ServiceInfo
fn clone(&self) -> ServiceInfo
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 ServiceInfo
Source§impl Debug for ServiceInfo
impl Debug for ServiceInfo
Source§impl Default for ServiceInfo
impl Default for ServiceInfo
Source§fn default() -> ServiceInfo
fn default() -> ServiceInfo
Returns the “default value” for a type. Read more
impl Eq for ServiceInfo
Source§impl PartialEq for ServiceInfo
impl PartialEq for ServiceInfo
impl StructuralPartialEq for ServiceInfo
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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