#[non_exhaustive]pub enum BundleEvent {
Scanned {
count: usize,
},
CacheHit {
uri: Uri,
path: PathBuf,
},
DownloadStarted {
uri: Uri,
},
Downloaded {
uri: Uri,
path: PathBuf,
bytes: u64,
},
Bundled {
id: AssetId,
file: String,
bytes: usize,
},
Unchanged {
id: AssetId,
file: String,
},
Removed {
file: String,
},
Finished {
bundled: usize,
unchanged: usize,
removed: usize,
},
}Available on crate feature
bundler only.Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scanned
Scanning the binary turned up count asset declarations.
CacheHit
A remote asset was already in the download cache.
DownloadStarted
A remote asset is not cached and is about to be downloaded.
Downloaded
A remote asset finished downloading into the cache.
Bundled
An asset was written into the bundle directory.
Unchanged
An asset was already in the bundle directory with the same contents, so it was left alone.
Removed
A file that is no longer referenced was deleted from the bundle directory.
Finished
Every asset has been processed and the manifest is written.
Trait Implementations§
Source§impl Clone for BundleEvent
impl Clone for BundleEvent
Source§impl Debug for BundleEvent
impl Debug for BundleEvent
Auto Trait Implementations§
impl !Freeze for BundleEvent
impl RefUnwindSafe for BundleEvent
impl Send for BundleEvent
impl Sync for BundleEvent
impl Unpin for BundleEvent
impl UnsafeUnpin for BundleEvent
impl UnwindSafe for BundleEvent
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