pub struct ServiceWorkerRegistrationBuilder { /* private fields */ }Expand description
Builder for ServiceWorkerRegistration.
Implementations§
Source§impl ServiceWorkerRegistrationBuilder
impl ServiceWorkerRegistrationBuilder
pub fn registration_id<VALUE: Into<RegistrationId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn scope_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn is_deleted<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<ServiceWorkerRegistration, ServiceWorkerRegistrationBuilderError>
pub fn build( &self, ) -> Result<ServiceWorkerRegistration, ServiceWorkerRegistrationBuilderError>
Trait Implementations§
Source§impl Clone for ServiceWorkerRegistrationBuilder
impl Clone for ServiceWorkerRegistrationBuilder
Source§fn clone(&self) -> ServiceWorkerRegistrationBuilder
fn clone(&self) -> ServiceWorkerRegistrationBuilder
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 moreAuto Trait Implementations§
impl Freeze for ServiceWorkerRegistrationBuilder
impl RefUnwindSafe for ServiceWorkerRegistrationBuilder
impl Send for ServiceWorkerRegistrationBuilder
impl Sync for ServiceWorkerRegistrationBuilder
impl Unpin for ServiceWorkerRegistrationBuilder
impl UnsafeUnpin for ServiceWorkerRegistrationBuilder
impl UnwindSafe for ServiceWorkerRegistrationBuilder
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