pub struct PreloadingAttemptKeyBuilder { /* private fields */ }Expand description
Builder for PreloadingAttemptKey.
Implementations§
Source§impl PreloadingAttemptKeyBuilder
impl PreloadingAttemptKeyBuilder
pub fn loader_id<VALUE: Into<LoaderId>>(&mut self, value: VALUE) -> &mut Self
pub fn action<VALUE: Into<SpeculationAction>>( &mut self, value: VALUE, ) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn target_hint<VALUE: Into<SpeculationTargetHint>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<PreloadingAttemptKey, PreloadingAttemptKeyBuilderError>
pub fn build( &self, ) -> Result<PreloadingAttemptKey, PreloadingAttemptKeyBuilderError>
Trait Implementations§
Source§impl Clone for PreloadingAttemptKeyBuilder
impl Clone for PreloadingAttemptKeyBuilder
Source§fn clone(&self) -> PreloadingAttemptKeyBuilder
fn clone(&self) -> PreloadingAttemptKeyBuilder
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 PreloadingAttemptKeyBuilder
impl RefUnwindSafe for PreloadingAttemptKeyBuilder
impl Send for PreloadingAttemptKeyBuilder
impl Sync for PreloadingAttemptKeyBuilder
impl Unpin for PreloadingAttemptKeyBuilder
impl UnsafeUnpin for PreloadingAttemptKeyBuilder
impl UnwindSafe for PreloadingAttemptKeyBuilder
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