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>>, KitsuneError>> + Send>>;
}
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>>, KitsuneError>> + Send>>

Bind a new local transport endpoint.

Implementors§