pub struct FrameResourceBuilder { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime and experimental only.Implementations§
Source§impl FrameResourceBuilder
impl FrameResourceBuilder
Sourcepub fn type(&mut self, v: ResourceType) -> &mut Self
pub fn type(&mut self, v: ResourceType) -> &mut Self
Type of this resource.
Sourcepub fn mime_type(&mut self, v: String) -> &mut Self
pub fn mime_type(&mut self, v: String) -> &mut Self
Resource mimeType as determined by the browser.
Sourcepub fn last_modified(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn last_modified(&mut self, v: TimeSinceEpoch) -> &mut Self
last-modified timestamp as reported by server.
Sourcepub fn content_size(&mut self, v: f64) -> &mut Self
pub fn content_size(&mut self, v: f64) -> &mut Self
Resource content size.
Sourcepub fn canceled(&mut self, v: bool) -> &mut Self
pub fn canceled(&mut self, v: bool) -> &mut Self
True if the resource was canceled during loading.
pub fn build(&mut self) -> Result<FrameResource, &'static str>
Trait Implementations§
Source§impl Clone for FrameResourceBuilder
impl Clone for FrameResourceBuilder
Source§fn clone(&self) -> FrameResourceBuilder
fn clone(&self) -> FrameResourceBuilder
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 moreSource§impl Debug for FrameResourceBuilder
impl Debug for FrameResourceBuilder
Auto Trait Implementations§
impl Freeze for FrameResourceBuilder
impl RefUnwindSafe for FrameResourceBuilder
impl Send for FrameResourceBuilder
impl Sync for FrameResourceBuilder
impl Unpin for FrameResourceBuilder
impl UnwindSafe for FrameResourceBuilder
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