pub enum ServiceWorkerEvents {
WorkerErrorReported(WorkerErrorReported),
WorkerRegistrationUpdated(WorkerRegistrationUpdated),
WorkerVersionUpdated(WorkerVersionUpdated),
}Variants§
WorkerErrorReported(WorkerErrorReported)
WorkerRegistrationUpdated(WorkerRegistrationUpdated)
WorkerVersionUpdated(WorkerVersionUpdated)
Implementations§
Source§impl ServiceWorkerEvents
impl ServiceWorkerEvents
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ServiceWorkerEvents
impl Clone for ServiceWorkerEvents
Source§fn clone(&self) -> ServiceWorkerEvents
fn clone(&self) -> ServiceWorkerEvents
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 ServiceWorkerEvents
impl Debug for ServiceWorkerEvents
Source§impl<'de> Deserialize<'de> for ServiceWorkerEvents
impl<'de> Deserialize<'de> for ServiceWorkerEvents
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<ServiceWorkerEvents> for BrowserProtocolEvents
impl From<ServiceWorkerEvents> for BrowserProtocolEvents
Source§fn from(v: ServiceWorkerEvents) -> Self
fn from(v: ServiceWorkerEvents) -> Self
Converts to this type from the input type.
Source§impl From<ServiceWorkerEvents> for Event
impl From<ServiceWorkerEvents> for Event
Source§fn from(v: ServiceWorkerEvents) -> Self
fn from(v: ServiceWorkerEvents) -> Self
Converts to this type from the input type.
Source§impl From<WorkerErrorReported> for ServiceWorkerEvents
impl From<WorkerErrorReported> for ServiceWorkerEvents
Source§fn from(v: WorkerErrorReported) -> Self
fn from(v: WorkerErrorReported) -> Self
Converts to this type from the input type.
Source§impl From<WorkerRegistrationUpdated> for ServiceWorkerEvents
impl From<WorkerRegistrationUpdated> for ServiceWorkerEvents
Source§fn from(v: WorkerRegistrationUpdated) -> Self
fn from(v: WorkerRegistrationUpdated) -> Self
Converts to this type from the input type.
Source§impl From<WorkerVersionUpdated> for ServiceWorkerEvents
impl From<WorkerVersionUpdated> for ServiceWorkerEvents
Source§fn from(v: WorkerVersionUpdated) -> Self
fn from(v: WorkerVersionUpdated) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServiceWorkerEvents
impl PartialEq for ServiceWorkerEvents
Source§impl Serialize for ServiceWorkerEvents
impl Serialize for ServiceWorkerEvents
Source§impl TryFrom<BrowserProtocolEvents> for ServiceWorkerEvents
impl TryFrom<BrowserProtocolEvents> for ServiceWorkerEvents
Source§type Error = BrowserProtocolEvents
type Error = BrowserProtocolEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolEvents,
) -> Result<Self, <ServiceWorkerEvents as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <ServiceWorkerEvents as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for ServiceWorkerEvents
impl TryFrom<Event> for ServiceWorkerEvents
Source§impl TryFrom<ServiceWorkerEvents> for WorkerErrorReported
impl TryFrom<ServiceWorkerEvents> for WorkerErrorReported
Source§type Error = ServiceWorkerEvents
type Error = ServiceWorkerEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerEvents,
) -> Result<Self, <WorkerErrorReported as TryFrom<ServiceWorkerEvents>>::Error>
fn try_from( e: ServiceWorkerEvents, ) -> Result<Self, <WorkerErrorReported as TryFrom<ServiceWorkerEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerEvents> for WorkerRegistrationUpdated
impl TryFrom<ServiceWorkerEvents> for WorkerRegistrationUpdated
Source§type Error = ServiceWorkerEvents
type Error = ServiceWorkerEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerEvents,
) -> Result<Self, <WorkerRegistrationUpdated as TryFrom<ServiceWorkerEvents>>::Error>
fn try_from( e: ServiceWorkerEvents, ) -> Result<Self, <WorkerRegistrationUpdated as TryFrom<ServiceWorkerEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<ServiceWorkerEvents> for WorkerVersionUpdated
impl TryFrom<ServiceWorkerEvents> for WorkerVersionUpdated
Source§type Error = ServiceWorkerEvents
type Error = ServiceWorkerEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: ServiceWorkerEvents,
) -> Result<Self, <WorkerVersionUpdated as TryFrom<ServiceWorkerEvents>>::Error>
fn try_from( e: ServiceWorkerEvents, ) -> Result<Self, <WorkerVersionUpdated as TryFrom<ServiceWorkerEvents>>::Error>
Performs the conversion.
impl StructuralPartialEq for ServiceWorkerEvents
Auto Trait Implementations§
impl Freeze for ServiceWorkerEvents
impl RefUnwindSafe for ServiceWorkerEvents
impl Send for ServiceWorkerEvents
impl Sync for ServiceWorkerEvents
impl Unpin for ServiceWorkerEvents
impl UnsafeUnpin for ServiceWorkerEvents
impl UnwindSafe for ServiceWorkerEvents
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