Trait iroh_blobs::downloader::NeedsConn

source ·
pub trait NeedsConn<C>: Debug + 'static {
    // Required method
    fn proceed(self, conn: C) -> BoxedLocal<Result<Stats, FailureAction>>;
}
Available on crate feature downloader only.
Expand description

Trait modelling the intermediary state when a connection is needed to proceed.

Required Methods§

source

fn proceed(self, conn: C) -> BoxedLocal<Result<Stats, FailureAction>>

Proceeds the download with the given connection.

Implementors§