Trait kitsune_p2p_types::tx2::tx2_adapter::BindAdapt
source · pub trait BindAdapt: 'static + Send + Sync + Unpin {
fn bind(&self, url: TxUrl, timeout: KitsuneTimeout) -> EndpointFut;
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) -> EndpointFut
fn bind(&self, url: TxUrl, timeout: KitsuneTimeout) -> EndpointFut
Bind a local endpoint, given a url spec.
sourcefn local_cert(&self) -> Tx2Cert
fn local_cert(&self) -> Tx2Cert
Get the local certificate digest.