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§
Sourcefn wait(
&mut self,
timeout: Duration,
recv_limit: Arc<Semaphore>,
) -> BoxFuture<'static, Result<(DynBackCon, DynBackConRecvData)>>
fn wait( &mut self, timeout: Duration, recv_limit: Arc<Semaphore>, ) -> BoxFuture<'static, Result<(DynBackCon, DynBackConRecvData)>>
Wait for the connection
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".