Skip to main content

HubClientInfoReceiver

Trait HubClientInfoReceiver 

Source
pub trait HubClientInfoReceiver:
    Send
    + Sync
    + 'static {
    // Required methods
    fn client_info(
        &self,
        party: PartyRef,
        context: RequestContext,
    ) -> impl Future<Output = Handled<ClientInfo>> + Send;
    fn put_client_info(
        &self,
        party: PartyRef,
        info: ClientInfo,
        context: RequestContext,
    ) -> impl Future<Output = Handled<Created>> + Send;
}
Available on crate feature server only.
Expand description

The client side of the Hub Client Info module.

Spec: 2.3.0 §mod_hub_client_info_module

Required Methods§

Source

fn client_info( &self, party: PartyRef, context: RequestContext, ) -> impl Future<Output = Handled<ClientInfo>> + Send

GET {hubclientinfo}/{cc}/{party}.

Source

fn put_client_info( &self, party: PartyRef, info: ClientInfo, context: RequestContext, ) -> impl Future<Output = Handled<Created>> + Send

PUT {hubclientinfo}/{cc}/{party}.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§