Enum stac_async::download::Message
source · pub enum Message {
CreateDirectory(PathBuf),
GetAsset {
id: usize,
url: Url,
},
GotAsset {
id: usize,
content_length: Option<u64>,
},
Update {
id: usize,
bytes_written: usize,
},
FinishedDownload(usize),
FinishedAllDownloads,
WriteStac(PathBuf),
}
Expand description
A message from a downloader.
Variants§
CreateDirectory(PathBuf)
Create a download directory.
GetAsset
Send a GET request for an asset.
GotAsset
Fields
Got a successful asset response.
Update
Update the number of bytes written.
FinishedDownload(usize)
The download is finished.
FinishedAllDownloads
All downloads are finished.
WriteStac(PathBuf)
Write the stac file to the local filesystem.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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