pub struct ServiceWorkerRouterInfoBuilder { /* private fields */ }Implementations§
Source§impl ServiceWorkerRouterInfoBuilder
impl ServiceWorkerRouterInfoBuilder
Sourcepub fn rule_id_matched(self, rule_id_matched: u64) -> Self
pub fn rule_id_matched(self, rule_id_matched: u64) -> 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(
self,
matched_source_type: impl Into<ServiceWorkerRouterSource>,
) -> Self
pub fn matched_source_type( self, matched_source_type: impl Into<ServiceWorkerRouterSource>, ) -> 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(
self,
actual_source_type: impl Into<ServiceWorkerRouterSource>,
) -> Self
pub fn actual_source_type( self, actual_source_type: impl Into<ServiceWorkerRouterSource>, ) -> Self
The actual router source used.
pub fn build(self) -> ServiceWorkerRouterInfo
Trait Implementations§
Source§impl Default for ServiceWorkerRouterInfoBuilder
impl Default for ServiceWorkerRouterInfoBuilder
Source§fn default() -> ServiceWorkerRouterInfoBuilder
fn default() -> ServiceWorkerRouterInfoBuilder
Returns the “default value” for a type. Read more
Auto 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