pub struct ServiceWorkerVersionBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> ServiceWorkerVersionBuilder<'a>
impl<'a> ServiceWorkerVersionBuilder<'a>
Sourcepub fn scriptLastModified(self, scriptLastModified: f64) -> Self
pub fn scriptLastModified(self, scriptLastModified: f64) -> Self
The Last-Modified header value of the main script.
Sourcepub fn scriptResponseTime(self, scriptResponseTime: f64) -> Self
pub fn scriptResponseTime(self, scriptResponseTime: f64) -> 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 controlledClients(self, controlledClients: Vec<TargetID<'a>>) -> Self
pub fn targetId(self, targetId: TargetID<'a>) -> Self
pub fn routerRules(self, routerRules: impl Into<Cow<'a, str>>) -> Self
pub fn build(self) -> ServiceWorkerVersion<'a>
Auto Trait Implementations§
impl<'a> Freeze for ServiceWorkerVersionBuilder<'a>
impl<'a> RefUnwindSafe for ServiceWorkerVersionBuilder<'a>
impl<'a> Send for ServiceWorkerVersionBuilder<'a>
impl<'a> Sync for ServiceWorkerVersionBuilder<'a>
impl<'a> Unpin for ServiceWorkerVersionBuilder<'a>
impl<'a> UnsafeUnpin for ServiceWorkerVersionBuilder<'a>
impl<'a> UnwindSafe for ServiceWorkerVersionBuilder<'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