Skip to main content

RegistryServerHandler

Trait RegistryServerHandler 

Source
pub trait RegistryServerHandler<___T: Transport = Channel> {
    // Required method
    fn register(
        &mut self,
        request: Request<Register, ___T>,
        responder: Responder<Register, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the Registry protocol.

See Registry for more details.

Required Methods§

Source

fn register( &mut self, request: Request<Register, ___T>, responder: Responder<Register, ___T>, ) -> impl Future<Output = ()> + Send

Sets up a context for a |Device|, the target for the |Device|, and directs the |Device| at the target via a viewport, positioned in the context. These parameters are specified in a |Config|.

If |config| is invalid (e.g., missing important data), the |Device| request will be denied: the channel will be closed.

The return event tells the caller that (1) the server has processed the call, and (2) the |Device| is connected.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§