Skip to main content

SvcStashLocalServerHandler

Trait SvcStashLocalServerHandler 

Source
pub trait SvcStashLocalServerHandler<___T: Transport = Channel> {
    // Required method
    fn store(
        &mut self,
        request: Request<Store, ___T>,
    ) -> impl Future<Output = ()>;
}
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 = ()>

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

Implementations on Foreign Types§

Source§

impl<___H, ___T> SvcStashLocalServerHandler<___T> for Local<___H>
where ___H: SvcStashServerHandler<___T>, ___T: Transport,

Source§

async fn store(&mut self, request: Request<Store, ___T>)

Implementors§