pub struct BackForwardCacheNotRestoredExplanationBuilder { /* private fields */ }Expand description
Builder for BackForwardCacheNotRestoredExplanation.
Implementations§
Source§impl BackForwardCacheNotRestoredExplanationBuilder
impl BackForwardCacheNotRestoredExplanationBuilder
Sourcepub fn type<VALUE: Into<BackForwardCacheNotRestoredReasonType>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn type<VALUE: Into<BackForwardCacheNotRestoredReasonType>>( &mut self, value: VALUE, ) -> &mut Self
Type of the reason
Sourcepub fn reason<VALUE: Into<BackForwardCacheNotRestoredReason>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn reason<VALUE: Into<BackForwardCacheNotRestoredReason>>( &mut self, value: VALUE, ) -> &mut Self
Not restored reason
Sourcepub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn context<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Context associated with the reason. The meaning of this context is dependent on the reason:
- EmbedderExtensionSentMessageToCachedFrame: the extension ID.
pub fn details<VALUE: Into<Vec<BackForwardCacheBlockingDetails>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<BackForwardCacheNotRestoredExplanation, BackForwardCacheNotRestoredExplanationBuilderError>
pub fn build( &self, ) -> Result<BackForwardCacheNotRestoredExplanation, BackForwardCacheNotRestoredExplanationBuilderError>
Builds a new BackForwardCacheNotRestoredExplanation.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for BackForwardCacheNotRestoredExplanationBuilder
impl Clone for BackForwardCacheNotRestoredExplanationBuilder
Source§fn clone(&self) -> BackForwardCacheNotRestoredExplanationBuilder
fn clone(&self) -> BackForwardCacheNotRestoredExplanationBuilder
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 BackForwardCacheNotRestoredExplanationBuilder
impl RefUnwindSafe for BackForwardCacheNotRestoredExplanationBuilder
impl Send for BackForwardCacheNotRestoredExplanationBuilder
impl Sync for BackForwardCacheNotRestoredExplanationBuilder
impl Unpin for BackForwardCacheNotRestoredExplanationBuilder
impl UnsafeUnpin for BackForwardCacheNotRestoredExplanationBuilder
impl UnwindSafe for BackForwardCacheNotRestoredExplanationBuilder
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