Skip to main content

BackWaitCon

Trait BackWaitCon 

Source
pub trait BackWaitCon: 'static + Send {
    // Required methods
    fn wait(
        &mut self,
        timeout: Duration,
        recv_limit: Arc<Semaphore>,
    ) -> BoxFuture<'static, Result<(DynBackCon, DynBackConRecvData)>>;
    fn pub_key(&self) -> &PubKey;
}
Expand description

Pending connection.

Required Methods§

Source

fn wait( &mut self, timeout: Duration, recv_limit: Arc<Semaphore>, ) -> BoxFuture<'static, Result<(DynBackCon, DynBackConRecvData)>>

Wait for the connection

Source

fn pub_key(&self) -> &PubKey

Get the pub_key identifying this connection.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§