pub struct ServiceWorkerVersion<'a> { /* private fields */ }Expand description
ServiceWorker version.
Implementations§
Source§impl<'a> ServiceWorkerVersion<'a>
impl<'a> ServiceWorkerVersion<'a>
pub fn builder( versionId: impl Into<Cow<'a, str>>, registrationId: RegistrationID<'a>, scriptURL: impl Into<Cow<'a, str>>, runningStatus: ServiceWorkerVersionRunningStatus, status: ServiceWorkerVersionStatus, ) -> ServiceWorkerVersionBuilder<'a>
pub fn versionId(&self) -> &str
pub fn registrationId(&self) -> &RegistrationID<'a>
pub fn scriptURL(&self) -> &str
pub fn runningStatus(&self) -> &ServiceWorkerVersionRunningStatus
pub fn status(&self) -> &ServiceWorkerVersionStatus
pub fn scriptLastModified(&self) -> Option<f64>
pub fn scriptResponseTime(&self) -> Option<f64>
pub fn controlledClients(&self) -> Option<&[TargetID<'a>]>
pub fn targetId(&self) -> Option<&TargetID<'a>>
pub fn routerRules(&self) -> Option<&str>
Trait Implementations§
Source§impl<'a> Clone for ServiceWorkerVersion<'a>
impl<'a> Clone for ServiceWorkerVersion<'a>
Source§fn clone(&self) -> ServiceWorkerVersion<'a>
fn clone(&self) -> ServiceWorkerVersion<'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 ServiceWorkerVersion<'a>
impl<'a> Debug for ServiceWorkerVersion<'a>
Source§impl<'a> Default for ServiceWorkerVersion<'a>
impl<'a> Default for ServiceWorkerVersion<'a>
Source§fn default() -> ServiceWorkerVersion<'a>
fn default() -> ServiceWorkerVersion<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ServiceWorkerVersion<'a>
impl<'de, 'a> Deserialize<'de> for ServiceWorkerVersion<'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 ServiceWorkerVersion<'a>
impl<'a> RefUnwindSafe for ServiceWorkerVersion<'a>
impl<'a> Send for ServiceWorkerVersion<'a>
impl<'a> Sync for ServiceWorkerVersion<'a>
impl<'a> Unpin for ServiceWorkerVersion<'a>
impl<'a> UnsafeUnpin for ServiceWorkerVersion<'a>
impl<'a> UnwindSafe for ServiceWorkerVersion<'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