pub struct ServiceWorkerRegistration<'a> { /* private fields */ }Expand description
ServiceWorker registration.
Implementations§
Source§impl<'a> ServiceWorkerRegistration<'a>
impl<'a> ServiceWorkerRegistration<'a>
Sourcepub fn builder(
registration_id: impl Into<RegistrationID<'a>>,
scope_url: impl Into<Cow<'a, str>>,
is_deleted: bool,
) -> ServiceWorkerRegistrationBuilder<'a>
pub fn builder( registration_id: impl Into<RegistrationID<'a>>, scope_url: impl Into<Cow<'a, str>>, is_deleted: bool, ) -> ServiceWorkerRegistrationBuilder<'a>
Creates a builder for this type with the required parameters:
registration_id:scope_url:is_deleted:
pub fn registration_id(&self) -> &RegistrationID<'a>
pub fn scope_url(&self) -> &str
pub fn is_deleted(&self) -> bool
Trait Implementations§
Source§impl<'a> Clone for ServiceWorkerRegistration<'a>
impl<'a> Clone for ServiceWorkerRegistration<'a>
Source§fn clone(&self) -> ServiceWorkerRegistration<'a>
fn clone(&self) -> ServiceWorkerRegistration<'a>
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<'a> Debug for ServiceWorkerRegistration<'a>
impl<'a> Debug for ServiceWorkerRegistration<'a>
Source§impl<'a> Default for ServiceWorkerRegistration<'a>
impl<'a> Default for ServiceWorkerRegistration<'a>
Source§fn default() -> ServiceWorkerRegistration<'a>
fn default() -> ServiceWorkerRegistration<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ServiceWorkerRegistration<'a>
impl<'de, 'a> Deserialize<'de> for ServiceWorkerRegistration<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ServiceWorkerRegistration<'a>
impl<'a> RefUnwindSafe for ServiceWorkerRegistration<'a>
impl<'a> Send for ServiceWorkerRegistration<'a>
impl<'a> Sync for ServiceWorkerRegistration<'a>
impl<'a> Unpin for ServiceWorkerRegistration<'a>
impl<'a> UnsafeUnpin for ServiceWorkerRegistration<'a>
impl<'a> UnwindSafe for ServiceWorkerRegistration<'a>
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