pub struct ServiceWorkerRouterInfoBuilder { /* private fields */ }Expand description
Builder for ServiceWorkerRouterInfo.
Implementations§
Source§impl ServiceWorkerRouterInfoBuilder
impl ServiceWorkerRouterInfoBuilder
Sourcepub fn rule_id_matched<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn rule_id_matched<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
ID of the rule matched. If there is a matched rule, this field will be set, otherwiser no value will be set.
Sourcepub fn matched_source_type<VALUE: Into<ServiceWorkerRouterSource>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn matched_source_type<VALUE: Into<ServiceWorkerRouterSource>>( &mut self, value: VALUE, ) -> &mut Self
The router source of the matched rule. If there is a matched rule, this field will be set, otherwise no value will be set.
Sourcepub fn actual_source_type<VALUE: Into<ServiceWorkerRouterSource>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn actual_source_type<VALUE: Into<ServiceWorkerRouterSource>>( &mut self, value: VALUE, ) -> &mut Self
The actual router source used.
Sourcepub fn build(
&self,
) -> Result<ServiceWorkerRouterInfo, ServiceWorkerRouterInfoBuilderError>
pub fn build( &self, ) -> Result<ServiceWorkerRouterInfo, ServiceWorkerRouterInfoBuilderError>
Trait Implementations§
Source§impl Clone for ServiceWorkerRouterInfoBuilder
impl Clone for ServiceWorkerRouterInfoBuilder
Source§fn clone(&self) -> ServiceWorkerRouterInfoBuilder
fn clone(&self) -> ServiceWorkerRouterInfoBuilder
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 ServiceWorkerRouterInfoBuilder
impl RefUnwindSafe for ServiceWorkerRouterInfoBuilder
impl Send for ServiceWorkerRouterInfoBuilder
impl Sync for ServiceWorkerRouterInfoBuilder
impl Unpin for ServiceWorkerRouterInfoBuilder
impl UnsafeUnpin for ServiceWorkerRouterInfoBuilder
impl UnwindSafe for ServiceWorkerRouterInfoBuilder
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