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>, ()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.