pub enum ConfigureError {
AlreadyConfigured(AlreadyConfigured),
ManifestRequired,
InvalidManifest(String),
ApplicationMismatch {
manifest: String,
worker: String,
},
}Expand description
A refused startup setting; the current setting is never changed on error.
Variants§
AlreadyConfigured(AlreadyConfigured)
A page/request or earlier configuration already fixed the process setting.
ManifestRequired
An enabled worker needs a validated application manifest.
InvalidManifest(String)
The manifest fails its common schema or version checks.
ApplicationMismatch
The worker was configured for a different application.
Implementations§
Source§impl ConfigureError
impl ConfigureError
Sourcepub fn current(&self) -> Option<&ServiceWorker>
pub fn current(&self) -> Option<&ServiceWorker>
Existing setting, if a prior configuration caused this refusal.
Trait Implementations§
Source§impl Clone for ConfigureError
impl Clone for ConfigureError
Source§impl Debug for ConfigureError
impl Debug for ConfigureError
Source§impl Display for ConfigureError
impl Display for ConfigureError
impl Eq for ConfigureError
Source§impl Error for ConfigureError
impl Error for ConfigureError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ConfigureError
impl PartialEq for ConfigureError
impl StructuralPartialEq for ConfigureError
Auto Trait Implementations§
impl Freeze for ConfigureError
impl RefUnwindSafe for ConfigureError
impl Send for ConfigureError
impl Sync for ConfigureError
impl Unpin for ConfigureError
impl UnsafeUnpin for ConfigureError
impl UnwindSafe for ConfigureError
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