pub enum ExtensionEvent {
ShouldDownloadAssetPack {
asset_pack: AssetPackSnapshot,
should_download: bool,
},
DownloadsRequested {
request: ContentRequest,
manifest_url: String,
extension_info: AppExtensionInfoSnapshot,
planned_downloads: Vec<DownloadSnapshot>,
},
DownloadPlanFailed {
request: ContentRequest,
manifest_url: String,
error: BackgroundAssetsError,
},
ChallengeRequested {
download: DownloadSnapshot,
challenge: AuthenticationChallenge,
disposition: ChallengeDisposition,
},
DownloadFailed {
download: DownloadSnapshot,
error: BackgroundAssetsError,
},
DownloadFinished {
download: DownloadSnapshot,
file_url: String,
},
Terminating,
}Variants§
ShouldDownloadAssetPack
DownloadsRequested
Fields
§
request: ContentRequest§
extension_info: AppExtensionInfoSnapshot§
planned_downloads: Vec<DownloadSnapshot>DownloadPlanFailed
ChallengeRequested
Fields
§
download: DownloadSnapshot§
challenge: AuthenticationChallenge§
disposition: ChallengeDispositionDownloadFailed
DownloadFinished
Terminating
Trait Implementations§
Source§impl Clone for ExtensionEvent
impl Clone for ExtensionEvent
Source§fn clone(&self) -> ExtensionEvent
fn clone(&self) -> ExtensionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionEvent
impl Debug for ExtensionEvent
Source§impl PartialEq for ExtensionEvent
impl PartialEq for ExtensionEvent
Source§fn eq(&self, other: &ExtensionEvent) -> bool
fn eq(&self, other: &ExtensionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtensionEvent
impl Serialize for ExtensionEvent
impl Eq for ExtensionEvent
impl StructuralPartialEq for ExtensionEvent
Auto Trait Implementations§
impl Freeze for ExtensionEvent
impl RefUnwindSafe for ExtensionEvent
impl Send for ExtensionEvent
impl Sync for ExtensionEvent
impl Unpin for ExtensionEvent
impl UnsafeUnpin for ExtensionEvent
impl UnwindSafe for ExtensionEvent
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