pub struct DefaultEventHandler;Trait Implementations§
Source§impl DownloadEventHandler for DefaultEventHandler
impl DownloadEventHandler for DefaultEventHandler
fn on_download_start<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_download_progress<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
progress: f64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_download_complete<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_download_error<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
error: &'life2 DownloadError,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for DefaultEventHandler
impl RefUnwindSafe for DefaultEventHandler
impl Send for DefaultEventHandler
impl Sync for DefaultEventHandler
impl Unpin for DefaultEventHandler
impl UnwindSafe for DefaultEventHandler
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more