iroh_blobs::downloader

Trait 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§