Trait holochain::prelude::dependencies::kitsune_p2p_types::tx2::tx2_adapter::BindAdapt
source · pub trait BindAdapt: 'static + Send + Sync + Unpin {
// Required methods
fn bind(
&self,
url: TxUrl,
timeout: KitsuneTimeout
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn EndpointAdapt, Global>, Box<dyn ConRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<(Arc<dyn ConAdapt, Global>, Box<dyn InChanRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<Box<dyn AsFramedReader, Global>, KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>;
fn local_cert(&self) -> Tx2Cert;
}
Expand description
Tx bind adapter represents the ability to bind local endpoints.
Required Methods§
sourcefn bind(
&self,
url: TxUrl,
timeout: KitsuneTimeout
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn EndpointAdapt, Global>, Box<dyn ConRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<(Arc<dyn ConAdapt, Global>, Box<dyn InChanRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<Box<dyn AsFramedReader, Global>, KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>
fn bind( &self, url: TxUrl, timeout: KitsuneTimeout ) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn EndpointAdapt, Global>, Box<dyn ConRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<(Arc<dyn ConAdapt, Global>, Box<dyn InChanRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<Box<dyn AsFramedReader, Global>, KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>>, Global>), KitsuneError>> + Send, Global>>
Bind a local endpoint, given a url spec.
sourcefn local_cert(&self) -> Tx2Cert
fn local_cert(&self) -> Tx2Cert
Get the local certificate digest.