Skip to main content

SvcStashServerHandler

Trait SvcStashServerHandler 

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

A server handler for the SvcStash protocol.

See SvcStash for more details.

Required Methods§

Source

fn store( &mut self, request: Request<Store, ___T>, ) -> impl Future<Output = ()> + Send

Store a svc_endpoint in the stash. Stored endpoints will remain in transit, since there might not be a server side implementation. The server end is retrieved by |SvcStashProvider/Get|.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§