pub(crate) enum Event {
Command(DownloadCommand),
Abandoned,
Answered(usize, Answer),
Wrote(usize, u64),
Ended(usize, Result<(), ConnectionError>),
}Expand description
Something that happened to a download.
Variants§
Command(DownloadCommand)
The app asked for this.
Abandoned
The app is gone, so nobody will hear from this download again.
Answered(usize, Answer)
The server answered a connection, and the body is on its way.
Wrote(usize, u64)
A connection put this many more bytes in the file.
Ended(usize, Result<(), ConnectionError>)
A connection reached the end of the body, or failed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Event
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
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