pub enum ServiceWorkerCommands {
DeliverPushMessage(DeliverPushMessage),
Disable(Disable),
DispatchSyncEvent(DispatchSyncEvent),
DispatchPeriodicSyncEvent(DispatchPeriodicSyncEvent),
Enable(Enable),
SetForceUpdateOnPageLoad(SetForceUpdateOnPageLoad),
SkipWaiting(SkipWaiting),
StartWorker(StartWorker),
StopAllWorkers(StopAllWorkers),
StopWorker(StopWorker),
Unregister(Unregister),
UpdateRegistration(UpdateRegistration),
}Variants§
DeliverPushMessage(DeliverPushMessage)
Disable(Disable)
DispatchSyncEvent(DispatchSyncEvent)
DispatchPeriodicSyncEvent(DispatchPeriodicSyncEvent)
Enable(Enable)
SetForceUpdateOnPageLoad(SetForceUpdateOnPageLoad)
SkipWaiting(SkipWaiting)
StartWorker(StartWorker)
StopAllWorkers(StopAllWorkers)
StopWorker(StopWorker)
Unregister(Unregister)
UpdateRegistration(UpdateRegistration)
Implementations§
Source§impl ServiceWorkerCommands
impl ServiceWorkerCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ServiceWorkerCommands
impl Clone for ServiceWorkerCommands
Source§fn clone(&self) -> ServiceWorkerCommands
fn clone(&self) -> ServiceWorkerCommands
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceWorkerCommands
impl Debug for ServiceWorkerCommands
Source§impl<'de> Deserialize<'de> for ServiceWorkerCommands
impl<'de> Deserialize<'de> for ServiceWorkerCommands
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DeliverPushMessage> for ServiceWorkerCommands
impl From<DeliverPushMessage> for ServiceWorkerCommands
Source§fn from(v: DeliverPushMessage) -> Self
fn from(v: DeliverPushMessage) -> Self
Converts to this type from the input type.
Source§impl From<Disable> for ServiceWorkerCommands
impl From<Disable> for ServiceWorkerCommands
Source§impl From<DispatchPeriodicSyncEvent> for ServiceWorkerCommands
impl From<DispatchPeriodicSyncEvent> for ServiceWorkerCommands
Source§fn from(v: DispatchPeriodicSyncEvent) -> Self
fn from(v: DispatchPeriodicSyncEvent) -> Self
Converts to this type from the input type.
Source§impl From<DispatchSyncEvent> for ServiceWorkerCommands
impl From<DispatchSyncEvent> for ServiceWorkerCommands
Source§fn from(v: DispatchSyncEvent) -> Self
fn from(v: DispatchSyncEvent) -> Self
Converts to this type from the input type.
Source§impl From<Enable> for ServiceWorkerCommands
impl From<Enable> for ServiceWorkerCommands
Source§impl From<ServiceWorkerCommands> for BrowserProtocolCommands
impl From<ServiceWorkerCommands> for BrowserProtocolCommands
Source§fn from(v: ServiceWorkerCommands) -> Self
fn from(v: ServiceWorkerCommands) -> Self
Converts to this type from the input type.
Source§impl From<ServiceWorkerCommands> for Command
impl From<ServiceWorkerCommands> for Command
Source§fn from(v: ServiceWorkerCommands) -> Self
fn from(v: ServiceWorkerCommands) -> Self
Converts to this type from the input type.
Source§impl From<SetForceUpdateOnPageLoad> for ServiceWorkerCommands
impl From<SetForceUpdateOnPageLoad> for ServiceWorkerCommands
Source§fn from(v: SetForceUpdateOnPageLoad) -> Self
fn from(v: SetForceUpdateOnPageLoad) -> Self
Converts to this type from the input type.
Source§impl From<SkipWaiting> for ServiceWorkerCommands
impl From<SkipWaiting> for ServiceWorkerCommands
Source§fn from(v: SkipWaiting) -> Self
fn from(v: SkipWaiting) -> Self
Converts to this type from the input type.
Source§impl From<StartWorker> for ServiceWorkerCommands
impl From<StartWorker> for ServiceWorkerCommands
Source§fn from(v: StartWorker) -> Self
fn from(v: StartWorker) -> Self
Converts to this type from the input type.
Source§impl From<StopAllWorkers> for ServiceWorkerCommands
impl From<StopAllWorkers> for ServiceWorkerCommands
Source§fn from(v: StopAllWorkers) -> Self
fn from(v: StopAllWorkers) -> Self
Converts to this type from the input type.
Source§impl From<StopWorker> for ServiceWorkerCommands
impl From<StopWorker> for ServiceWorkerCommands
Source§fn from(v: StopWorker) -> Self
fn from(v: StopWorker) -> Self
Converts to this type from the input type.
Source§impl From<Unregister> for ServiceWorkerCommands
impl From<Unregister> for ServiceWorkerCommands
Source§fn from(v: Unregister) -> Self
fn from(v: Unregister) -> Self
Converts to this type from the input type.
Source§impl From<UpdateRegistration> for ServiceWorkerCommands
impl From<UpdateRegistration> for ServiceWorkerCommands
Source§fn from(v: UpdateRegistration) -> Self
fn from(v: UpdateRegistration) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServiceWorkerCommands
impl PartialEq for ServiceWorkerCommands
Source§impl Serialize for ServiceWorkerCommands
impl Serialize for ServiceWorkerCommands
Source§impl TryFrom<BrowserProtocolCommands> for ServiceWorkerCommands
impl TryFrom<BrowserProtocolCommands> for ServiceWorkerCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <ServiceWorkerCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <ServiceWorkerCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for ServiceWorkerCommands
impl TryFrom<Command> for ServiceWorkerCommands
Source§impl TryFrom<ServiceWorkerCommands> for DeliverPushMessage
impl TryFrom<ServiceWorkerCommands> for DeliverPushMessage
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <DeliverPushMessage as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <DeliverPushMessage as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for Disable
impl TryFrom<ServiceWorkerCommands> for Disable
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <Disable as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <Disable as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for DispatchPeriodicSyncEvent
impl TryFrom<ServiceWorkerCommands> for DispatchPeriodicSyncEvent
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <DispatchPeriodicSyncEvent as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <DispatchPeriodicSyncEvent as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for DispatchSyncEvent
impl TryFrom<ServiceWorkerCommands> for DispatchSyncEvent
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <DispatchSyncEvent as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <DispatchSyncEvent as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for Enable
impl TryFrom<ServiceWorkerCommands> for Enable
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <Enable as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <Enable as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for SetForceUpdateOnPageLoad
impl TryFrom<ServiceWorkerCommands> for SetForceUpdateOnPageLoad
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <SetForceUpdateOnPageLoad as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <SetForceUpdateOnPageLoad as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for SkipWaiting
impl TryFrom<ServiceWorkerCommands> for SkipWaiting
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <SkipWaiting as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <SkipWaiting as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for StartWorker
impl TryFrom<ServiceWorkerCommands> for StartWorker
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <StartWorker as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <StartWorker as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for StopAllWorkers
impl TryFrom<ServiceWorkerCommands> for StopAllWorkers
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <StopAllWorkers as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <StopAllWorkers as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for StopWorker
impl TryFrom<ServiceWorkerCommands> for StopWorker
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <StopWorker as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <StopWorker as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for Unregister
impl TryFrom<ServiceWorkerCommands> for Unregister
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <Unregister as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <Unregister as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerCommands> for UpdateRegistration
impl TryFrom<ServiceWorkerCommands> for UpdateRegistration
Source§type Error = ServiceWorkerCommands
type Error = ServiceWorkerCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerCommands,
) -> Result<Self, <UpdateRegistration as TryFrom<ServiceWorkerCommands>>::Error>
fn try_from( e: ServiceWorkerCommands, ) -> Result<Self, <UpdateRegistration as TryFrom<ServiceWorkerCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for ServiceWorkerCommands
Auto Trait Implementations§
impl Freeze for ServiceWorkerCommands
impl RefUnwindSafe for ServiceWorkerCommands
impl Send for ServiceWorkerCommands
impl Sync for ServiceWorkerCommands
impl Unpin for ServiceWorkerCommands
impl UnsafeUnpin for ServiceWorkerCommands
impl UnwindSafe for ServiceWorkerCommands
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