pub trait CustomDownloadProvider: 'static + Sync {
type Instance: CustomDownloadInstance;
// Required methods
fn handle(&self) -> DownloadProvider;
fn from_core(core: DownloadProvider) -> Self;
// Provided method
fn create_instance(&self) -> Result<Ref<DownloadInstance>, ()> { ... }
}Required Associated Types§
Required Methods§
fn handle(&self) -> DownloadProvider
sourcefn from_core(core: DownloadProvider) -> Self
fn from_core(core: DownloadProvider) -> Self
Called to construct this provider object with the given core object.
Provided Methods§
fn create_instance(&self) -> Result<Ref<DownloadInstance>, ()>
Object Safety§
This trait is not object safe.