pub trait EndpointAdapt: 'static + Send + Sync + Unpin {
    fn debug(&self) -> Value;
    fn uniq(&self) -> Uniq;
    fn local_addr(&self) -> Result<TxUrl, KitsuneError>;
    fn local_cert(&self) -> Tx2Cert;
    fn connect(
        &self,
        url: TxUrl,
        timeout: KitsuneTimeout
    ) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn ConAdapt + 'static>, Box<dyn InChanRecvAdapt<Item = Pin<Box<dyn Future<Output = Result<Box<dyn AsFramedReader + 'static, Global>, KitsuneError>> + Send + 'static, Global>>> + 'static, Global>), KitsuneError>> + Send + 'static, Global>>; fn is_closed(&self) -> bool; fn close(
        &self,
        code: u32,
        reason: &str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>; }
Expand description

Tx backend adapter represents a bound local endpoint.

Required Methods

Capture a debugging internal state dump.

Get the opaque Uniq identifier for this endpoint.

Get the string address (url) of this binding.

Get the local certificate digest.

Create a new outgoing connection to a remote.

Check if this endpoint has closed.

Shutdown this endpoint / all connections / all channels.

Implementors

Tx backend adapter represents a bound local endpoint.