pub type MessagesServiceRequestWrap = ClientMessage<MessageServiceRequest>;Expand description
Simplified request wrapper - now just RPC requests All subscription, filter updates, and catch-up requests are now handled as RPC calls
Aliased Type§
pub enum MessagesServiceRequestWrap {
Request(Request<MessageServiceRequest>),
Cancel {
trace_context: Context,
request_id: u64,
},
}Variants§
Request(Request<MessageServiceRequest>)
A request initiated by a user. The server responds to a request by invoking a
service-provided request handler. The handler completes with a response, which
the server sends back to the client.
Cancel
A command to cancel an in-flight request, automatically sent by the client when a response future is dropped.
When received, the server will immediately cancel the main task (top-level future) of the request handler for the associated request. Any tasks spawned by the request handler will not be canceled, because the framework layer does not know about them.