pub struct FrameResourceBuilder { /* private fields */ }Expand description
Builder for FrameResource.
Implementations§
Source§impl FrameResourceBuilder
impl FrameResourceBuilder
Sourcepub fn type<VALUE: Into<ResourceType>>(&mut self, value: VALUE) -> &mut Self
pub fn type<VALUE: Into<ResourceType>>(&mut self, value: VALUE) -> &mut Self
Type of this resource.
Sourcepub fn mime_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn mime_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Resource mimeType as determined by the browser.
Sourcepub fn last_modified<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn last_modified<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
last-modified timestamp as reported by server.
Sourcepub fn content_size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn content_size<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Resource content size.
Sourcepub fn failed<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn failed<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
True if the resource failed to load.
Sourcepub fn canceled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn canceled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
True if the resource was canceled during loading.
Sourcepub fn build(&self) -> Result<FrameResource, FrameResourceBuilderError>
pub fn build(&self) -> Result<FrameResource, FrameResourceBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for FrameResourceBuilder
impl RefUnwindSafe for FrameResourceBuilder
impl Send for FrameResourceBuilder
impl Sync for FrameResourceBuilder
impl Unpin for FrameResourceBuilder
impl UnsafeUnpin 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