Trait holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::lair_server::traits::AsLairServer
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.