pub struct LoadNetworkResourceBuilder { /* private fields */ }Expand description
Builder for LoadNetworkResource.
Implementations§
Source§impl LoadNetworkResourceBuilder
impl LoadNetworkResourceBuilder
Sourcepub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
pub fn frame_id<VALUE: Into<FrameId>>(&mut self, value: VALUE) -> &mut Self
Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.
Sourcepub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
URL of the resource to get content for.
Sourcepub fn options<VALUE: Into<LoadNetworkResourceOptions>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn options<VALUE: Into<LoadNetworkResourceOptions>>( &mut self, value: VALUE, ) -> &mut Self
Options for the request.
Sourcepub fn build(
&self,
) -> Result<LoadNetworkResource, LoadNetworkResourceBuilderError>
pub fn build( &self, ) -> Result<LoadNetworkResource, LoadNetworkResourceBuilderError>
Trait Implementations§
Source§impl Clone for LoadNetworkResourceBuilder
impl Clone for LoadNetworkResourceBuilder
Source§fn clone(&self) -> LoadNetworkResourceBuilder
fn clone(&self) -> LoadNetworkResourceBuilder
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 LoadNetworkResourceBuilder
impl RefUnwindSafe for LoadNetworkResourceBuilder
impl Send for LoadNetworkResourceBuilder
impl Sync for LoadNetworkResourceBuilder
impl Unpin for LoadNetworkResourceBuilder
impl UnsafeUnpin for LoadNetworkResourceBuilder
impl UnwindSafe for LoadNetworkResourceBuilder
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