pub trait AsLairServer: 'static + Send + Sync {
    fn accept(
        &self,
        send: Box<dyn AsyncWrite + Send + Unpin + 'static, Global>,
        recv: Box<dyn AsyncRead + Send + Unpin + 'static, Global>
    ) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send + 'static, Global>>; fn store(
        &self
    ) -> Pin<Box<dyn Future<Output = Result<LairStore, OneErr>> + Send + 'static, Global>>; }
Expand description

Object-safe lair server trait. Implement this to provide a new lair server backend implementation.

Required Methods§

accept an incoming connection, servicing the lair protocol.

get a handle to the LairStore instantiated by this server, may error if a store has not yet been created.

Implementors§