pub struct ServiceWorkerVersion { /* private fields */ }Available on crate features
experimental and ServiceWorker and Target only.Expand description
ServiceWorker version.
Implementations§
Source§impl ServiceWorkerVersion
impl ServiceWorkerVersion
pub fn builder() -> ServiceWorkerVersionBuilder
pub fn version_id(&self) -> &str
pub fn registration_id(&self) -> &RegistrationId
pub fn script_url(&self) -> &str
pub fn running_status(&self) -> &ServiceWorkerVersionRunningStatus
pub fn status(&self) -> &ServiceWorkerVersionStatus
Sourcepub fn script_last_modified(&self) -> Option<&f64>
pub fn script_last_modified(&self) -> Option<&f64>
The Last-Modified header value of the main script.
Sourcepub fn script_response_time(&self) -> Option<&f64>
pub fn script_response_time(&self) -> Option<&f64>
The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated.
pub fn controlled_clients(&self) -> Option<&Vec<TargetId>>
pub fn target_id(&self) -> Option<&TargetId>
Trait Implementations§
Source§impl Clone for ServiceWorkerVersion
impl Clone for ServiceWorkerVersion
Source§fn clone(&self) -> ServiceWorkerVersion
fn clone(&self) -> ServiceWorkerVersion
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 ServiceWorkerVersion
impl Debug for ServiceWorkerVersion
Source§impl<'de> Deserialize<'de> for ServiceWorkerVersion
impl<'de> Deserialize<'de> for ServiceWorkerVersion
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 Freeze for ServiceWorkerVersion
impl RefUnwindSafe for ServiceWorkerVersion
impl Send for ServiceWorkerVersion
impl Sync for ServiceWorkerVersion
impl Unpin for ServiceWorkerVersion
impl UnwindSafe for ServiceWorkerVersion
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