pub trait AsEpHnd: '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 is_closed(&self) -> bool;
    fn close(
        &self,
        code: u32,
        reason: &str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>; fn close_connection(
        &self,
        remote: TxUrl,
        code: u32,
        reason: &str
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>; fn get_connection(
        &self,
        remote: TxUrl,
        timeout: KitsuneTimeout
    ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn AsConHnd + 'static>, KitsuneError>> + Send + 'static, Global>>; fn write(
        &self,
        remote: TxUrl,
        msg_id: MsgId,
        data: PoolBuf,
        timeout: KitsuneTimeout
    ) -> Pin<Box<dyn Future<Output = Result<(), KitsuneError>> + Send + 'static, Global>> { ... } }
Expand description

Trait representing a connection handle.

Required Methods§

Capture a debugging internal state dump.

Get the opaque Uniq identifier for this endpoint.

Get the bound local address of this endpoint.

Get the local certificate digest.

Is this endpoint closed?

Close this endpoint.

Force close a specific connection.

Get a connection handle to an existing connection. If one does not exist, establish a new connection.

Provided Methods§

Write data to target remote.

Implementors§