pub trait EndpointAdapt: 'static + Send + Sync + Unpin {
    fn debug(&self) -> Value;
    fn uniq(&self) -> Uniq;
    fn local_addr(&self) -> KitsuneResult<TxUrl>;
    fn local_cert(&self) -> Tx2Cert;
    fn connect(&self, url: TxUrl, timeout: KitsuneTimeout) -> ConFut;
    fn is_closed(&self) -> bool;
    fn close(&self, code: u32, reason: &str) -> BoxFuture<'static, ()>;
}
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§