pub struct ServiceInfo {
pub source_timestamp: Option<SystemTime>,
pub received_timestamp: Option<SystemTime>,
pub request_id: RequestId,
}
Expand description
Information about an incoming service request.
Fields§
§source_timestamp: Option<SystemTime>
Time when the message was published by the publisher.
The rmw
layer does not specify the exact point at which the RMW implementation
must take the timestamp, but it should be taken consistently at the same point in the
process of publishing a message.
received_timestamp: Option<SystemTime>
Time when the message was received by the service node.
The rmw
layer does not specify the exact point at which the RMW implementation
must take the timestamp, but it should be taken consistently at the same point in the
process of receiving a message.
request_id: RequestId
Unique identifier for the request.
Trait Implementations§
Source§impl<T, Func, Fut> ClientAsyncCallback<T, ServiceInfo> for Func
impl<T, Func, Fut> ClientAsyncCallback<T, ServiceInfo> for Func
Source§type Task = Fut
type Task = Fut
This represents the type of task (Future) that will be produced by the callback
Source§fn run_client_async_callback(
self,
response: T::Response,
info: ServiceInfo,
) -> Fut
fn run_client_async_callback( self, response: T::Response, info: ServiceInfo, ) -> Fut
Trigger the callback to run
Source§impl<T, Func> ClientCallback<T, ServiceInfo> for Func
impl<T, Func> ClientCallback<T, ServiceInfo> for Func
Source§fn run_client_callback(self, response: T::Response, info: ServiceInfo)
fn run_client_callback(self, response: T::Response, info: ServiceInfo)
Trigger the callback to run
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 · 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 ServiceInfo
impl Debug for ServiceInfo
Source§impl Hash for ServiceInfo
impl Hash for ServiceInfo
Source§impl<T, F, Func> IntoAsyncServiceCallback<T, ServiceInfo> for Func
impl<T, F, Func> IntoAsyncServiceCallback<T, ServiceInfo> for Func
Source§fn into_async_service_callback(self) -> AnyServiceCallback<T, ()>
fn into_async_service_callback(self) -> AnyServiceCallback<T, ()>
Converts the callback into an enum. Read more
Source§impl<T, Func> IntoNodeServiceCallback<T, ServiceInfo> for Func
impl<T, Func> IntoNodeServiceCallback<T, ServiceInfo> for Func
Source§fn into_node_service_callback(self) -> AnyServiceCallback<T, ()>
fn into_node_service_callback(self) -> AnyServiceCallback<T, ()>
Converts the callback into an enum. Read more
Source§impl<T, Payload, Func> IntoWorkerServiceCallback<T, Payload, ServiceInfo> for Func
impl<T, Payload, Func> IntoWorkerServiceCallback<T, Payload, ServiceInfo> for Func
Source§fn into_worker_service_callback(self) -> AnyServiceCallback<T, Payload>
fn into_worker_service_callback(self) -> AnyServiceCallback<T, Payload>
Converts the callback into an enum Read more
Source§impl Ord for ServiceInfo
impl Ord for ServiceInfo
Source§fn cmp(&self, other: &ServiceInfo) -> Ordering
fn cmp(&self, other: &ServiceInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServiceInfo
impl PartialEq for ServiceInfo
Source§impl PartialOrd for ServiceInfo
impl PartialOrd for ServiceInfo
impl Eq 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 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