pub trait ConAdapt: 'static + Send + Sync + Unpin {
    fn uniq(&self) -> Uniq;
fn dir(&self) -> Tx2ConDir;
fn peer_addr(&self) -> KitsuneResult<TxUrl>;
fn peer_cert(&self) -> Tx2Cert;
fn out_chan(&self, timeout: KitsuneTimeout) -> OutChanFut;
fn is_closed(&self) -> bool;
fn close(&self, code: u32, reason: &str) -> BoxFuture<'static, ()>; }
Expand description

Tx backend adapter represents an open connection to a remote.

Required methods

Get the opaque Uniq identifier for this connection.

Get the directionality of this connection.

Get the string address (url) of the remote.

Get the certificate digest of the remote peer.

Create a new outgoing channel to the remote.

Check if this connection has closed.

Close this open connection (and all associated Chans).

Implementors