pub struct DownloadProvider { /* private fields */ }Implementations§
source§impl DownloadProvider
impl DownloadProvider
pub fn get(name: &str) -> Option<DownloadProvider>
pub fn list() -> Result<Array<DownloadProvider>, ()>
sourcepub fn try_default() -> Result<DownloadProvider, ()>
pub fn try_default() -> Result<DownloadProvider, ()>
TODO: We may want to impl Default, error checking might be preventing us from doing so
pub fn name(&self) -> String
pub fn create_instance(&self) -> Result<Ref<DownloadInstance>, ()>
Trait Implementations§
source§impl Clone for DownloadProvider
impl Clone for DownloadProvider
source§fn clone(&self) -> DownloadProvider
fn clone(&self) -> DownloadProvider
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CoreArrayProvider for DownloadProvider
impl CoreArrayProvider for DownloadProvider
source§impl Debug for DownloadProvider
impl Debug for DownloadProvider
impl Copy for DownloadProvider
impl Send for DownloadProvider
impl Sync for DownloadProvider
Auto Trait Implementations§
impl Freeze for DownloadProvider
impl RefUnwindSafe for DownloadProvider
impl Unpin for DownloadProvider
impl UnwindSafe for DownloadProvider
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more