Enum async_fetcher::FetchEvent
source · pub enum FetchEvent {
ContentLength(u64),
Fetched,
Fetching,
Progress(u64),
Retrying,
}
Expand description
Events which are submitted by the fetcher.
Variants§
ContentLength(u64)
States that we know the length of the file being fetched.
Fetched
Notifies that the file has been fetched.
Fetching
Notifies that a file is being fetched.
Progress(u64)
Reports the amount of bytes that have been read for a file.
Retrying
Notification that a fetch is being re-attempted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FetchEvent
impl RefUnwindSafe for FetchEvent
impl Send for FetchEvent
impl Sync for FetchEvent
impl Unpin for FetchEvent
impl UnwindSafe for FetchEvent
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