pub struct BackForwardCacheNotUsedEventParamsBuilder { /* private fields */ }Expand description
Builder for BackForwardCacheNotUsedEventParams.
Implementations§
Source§impl BackForwardCacheNotUsedEventParamsBuilder
impl BackForwardCacheNotUsedEventParamsBuilder
Sourcepub fn loader_id(&mut self, value: LoaderId) -> &mut Self
pub fn loader_id(&mut self, value: LoaderId) -> &mut Self
The loader id for the associated navigation.
Sourcepub fn not_restored_explanations(
&mut self,
value: Vec<BackForwardCacheNotRestoredExplanation>,
) -> &mut Self
pub fn not_restored_explanations( &mut self, value: Vec<BackForwardCacheNotRestoredExplanation>, ) -> &mut Self
Array of reasons why the page could not be cached. This must not be empty.
Sourcepub fn not_restored_explanations_tree(
&mut self,
value: Option<BackForwardCacheNotRestoredExplanationTree>,
) -> &mut Self
pub fn not_restored_explanations_tree( &mut self, value: Option<BackForwardCacheNotRestoredExplanationTree>, ) -> &mut Self
Tree structure of reasons why the page could not be cached for each frame.
Sourcepub fn build(
&self,
) -> Result<BackForwardCacheNotUsedEventParams, BackForwardCacheNotUsedEventParamsBuilderError>
pub fn build( &self, ) -> Result<BackForwardCacheNotUsedEventParams, BackForwardCacheNotUsedEventParamsBuilderError>
Builds a new BackForwardCacheNotUsedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for BackForwardCacheNotUsedEventParamsBuilder
impl Clone for BackForwardCacheNotUsedEventParamsBuilder
Source§fn clone(&self) -> BackForwardCacheNotUsedEventParamsBuilder
fn clone(&self) -> BackForwardCacheNotUsedEventParamsBuilder
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 BackForwardCacheNotUsedEventParamsBuilder
impl RefUnwindSafe for BackForwardCacheNotUsedEventParamsBuilder
impl Send for BackForwardCacheNotUsedEventParamsBuilder
impl Sync for BackForwardCacheNotUsedEventParamsBuilder
impl Unpin for BackForwardCacheNotUsedEventParamsBuilder
impl UnsafeUnpin for BackForwardCacheNotUsedEventParamsBuilder
impl UnwindSafe for BackForwardCacheNotUsedEventParamsBuilder
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