pub enum AssetType {
Page,
Widget,
Translations,
Preload,
}
Expand description
The type of an asset fetched from the server. This allows distinguishing between errors in fetching, say, pages, vs. translations, which you may wish to handle differently.
Variants§
Page
A page in the app.
Widget
A widget in the app.
Translations
Translations for a locale.
Preload
A page/widget the user asked to have preloaded.
Trait Implementations§
impl Copy for AssetType
Auto Trait Implementations§
impl RefUnwindSafe for AssetType
impl Send for AssetType
impl Sync for AssetType
impl Unpin for AssetType
impl UnwindSafe for AssetType
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