pub trait AsEpFactory: 'static + Send + Sync + Unpin {
    // Required method
    fn bind(
        &self,
        bind_spec: TxUrl,
        timeout: KitsuneTimeout
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsEp<Item = EpEvent> + 'static, Global>, KitsuneError>> + Send + 'static, Global>>;
}
Expand description

Trait representing an endpoint factory (binder).

Required Methods§

source

fn bind( &self, bind_spec: TxUrl, timeout: KitsuneTimeout ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsEp<Item = EpEvent> + 'static, Global>, KitsuneError>> + Send + 'static, Global>>

Bind a new local transport endpoint.

Implementors§