Trait kitsune_p2p_types::tx2::tx2_pool::AsEpFactory
source · pub trait AsEpFactory: 'static + Send + Sync + Unpin {
fn bind(
&self,
bind_spec: TxUrl,
timeout: KitsuneTimeout
) -> BoxFuture<'static, KitsuneResult<Ep>>;
}
Expand description
Trait representing an endpoint factory (binder).
Required Methods§
sourcefn bind(
&self,
bind_spec: TxUrl,
timeout: KitsuneTimeout
) -> BoxFuture<'static, KitsuneResult<Ep>>
fn bind(
&self,
bind_spec: TxUrl,
timeout: KitsuneTimeout
) -> BoxFuture<'static, KitsuneResult<Ep>>
Bind a new local transport endpoint.