MessagesServiceRequestWrap

Type Alias MessagesServiceRequestWrap 

Source
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.

Fields

§trace_context: Context

The trace context associates the message with a specific chain of causally-related actions, possibly orchestrated across many distributed systems.

§request_id: u64

The ID of the request to cancel.