pub struct ServiceWorkerVersionBuilder { /* private fields */ }Available on crate features
experimental and ServiceWorker and Target only.Implementations§
Source§impl ServiceWorkerVersionBuilder
impl ServiceWorkerVersionBuilder
pub fn version_id(&mut self, v: String) -> &mut Self
pub fn registration_id(&mut self, v: RegistrationId) -> &mut Self
pub fn script_url(&mut self, v: String) -> &mut Self
pub fn running_status( &mut self, v: ServiceWorkerVersionRunningStatus, ) -> &mut Self
pub fn status(&mut self, v: ServiceWorkerVersionStatus) -> &mut Self
Sourcepub fn script_last_modified(&mut self, v: f64) -> &mut Self
pub fn script_last_modified(&mut self, v: f64) -> &mut Self
The Last-Modified header value of the main script.
Sourcepub fn script_response_time(&mut self, v: f64) -> &mut Self
pub fn script_response_time(&mut self, v: f64) -> &mut Self
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(&mut self, v: Vec<TargetId>) -> &mut Self
pub fn target_id(&mut self, v: TargetId) -> &mut Self
pub fn build(&mut self) -> Result<ServiceWorkerVersion, &'static str>
Trait Implementations§
Source§impl Clone for ServiceWorkerVersionBuilder
impl Clone for ServiceWorkerVersionBuilder
Source§fn clone(&self) -> ServiceWorkerVersionBuilder
fn clone(&self) -> ServiceWorkerVersionBuilder
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 ServiceWorkerVersionBuilder
impl Debug for ServiceWorkerVersionBuilder
Auto Trait Implementations§
impl Freeze for ServiceWorkerVersionBuilder
impl RefUnwindSafe for ServiceWorkerVersionBuilder
impl Send for ServiceWorkerVersionBuilder
impl Sync for ServiceWorkerVersionBuilder
impl Unpin for ServiceWorkerVersionBuilder
impl UnwindSafe for ServiceWorkerVersionBuilder
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