Trait holochain::prelude::dependencies::kitsune_p2p_types::dependencies::lair_keystore_api::lair_server::server_traits::AsLairServer
pub trait AsLairServer: 'static + Send + Sync {
// Required methods
fn accept(
&self,
send: Box<dyn AsyncWrite + Unpin + Send, Global>,
recv: Box<dyn AsyncRead + Unpin + Send, Global>
) -> Pin<Box<dyn Future<Output = Result<(), OneErr>> + Send, Global>>;
fn store(
&self
) -> Pin<Box<dyn Future<Output = Result<LairStore, OneErr>> + Send, Global>>;
}
Expand description
Object-safe lair server trait. Implement this to provide a new lair server backend implementation.