pub trait RegistryLocalServerHandler<___T: Transport = Channel> {
// Required method
fn register(
&mut self,
request: Request<Register, ___T>,
responder: Responder<Register, ___T>,
) -> impl Future<Output = ()>;
}Expand description
A server handler for the Registry protocol.
See Registry for more details.
Required Methods§
Sourcefn register(
&mut self,
request: Request<Register, ___T>,
responder: Responder<Register, ___T>,
) -> impl Future<Output = ()>
fn register( &mut self, request: Request<Register, ___T>, responder: Responder<Register, ___T>, ) -> impl Future<Output = ()>
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.