Struct chrome_remote_interface_model::cache_storage::DataEntryBuilder [−][src]
This is supported on crate features
experimental
and CacheStorage
only.Implementations
impl DataEntryBuilder
[src]
pub fn request_url(&mut self, v: String) -> &mut Self
[src]
Request URL.
pub fn request_method(&mut self, v: String) -> &mut Self
[src]
Request method.
pub fn request_headers(&mut self, v: Vec<Header>) -> &mut Self
[src]
Request headers
pub fn response_time(&mut self, v: f64) -> &mut Self
[src]
Number of seconds since epoch.
pub fn response_status(&mut self, v: u32) -> &mut Self
[src]
HTTP response status code.
pub fn response_status_text(&mut self, v: String) -> &mut Self
[src]
HTTP response status text.
pub fn response_type(&mut self, v: CachedResponseType) -> &mut Self
[src]
HTTP response type
pub fn response_headers(&mut self, v: Vec<Header>) -> &mut Self
[src]
Response headers
pub fn build(&mut self) -> Result<DataEntry, &'static str>
[src]
Trait Implementations
impl Clone for DataEntryBuilder
[src]
fn clone(&self) -> DataEntryBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DataEntryBuilder
[src]
impl Default for DataEntryBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataEntryBuilder
[src]
impl Send for DataEntryBuilder
[src]
impl Sync for DataEntryBuilder
[src]
impl Unpin for DataEntryBuilder
[src]
impl UnwindSafe for DataEntryBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,