#[repr(C)]pub struct HttpCacheWriteOptions {
pub max_age_ns: CacheDurationNs,
pub vary_rule_ptr: *const u8,
pub vary_rule_len: usize,
pub initial_age_ns: CacheDurationNs,
pub stale_while_revalidate_ns: CacheDurationNs,
pub surrogate_keys_ptr: *const u8,
pub surrogate_keys_len: usize,
pub length: CacheObjectLength,
pub stale_if_error_ns: CacheDurationNs,
}Fields§
§max_age_ns: CacheDurationNs§vary_rule_ptr: *const u8§vary_rule_len: usize§initial_age_ns: CacheDurationNs§stale_while_revalidate_ns: CacheDurationNs§surrogate_keys_ptr: *const u8§surrogate_keys_len: usize§length: CacheObjectLength§stale_if_error_ns: CacheDurationNsTrait Implementations§
Source§impl Clone for HttpCacheWriteOptions
impl Clone for HttpCacheWriteOptions
Source§fn clone(&self) -> HttpCacheWriteOptions
fn clone(&self) -> HttpCacheWriteOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpCacheWriteOptions
Source§impl Debug for HttpCacheWriteOptions
impl Debug for HttpCacheWriteOptions
impl Eq for HttpCacheWriteOptions
Source§impl PartialEq for HttpCacheWriteOptions
impl PartialEq for HttpCacheWriteOptions
Source§fn eq(&self, other: &HttpCacheWriteOptions) -> bool
fn eq(&self, other: &HttpCacheWriteOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HttpCacheWriteOptions
Auto Trait Implementations§
impl !Send for HttpCacheWriteOptions
impl !Sync for HttpCacheWriteOptions
impl Freeze for HttpCacheWriteOptions
impl RefUnwindSafe for HttpCacheWriteOptions
impl Unpin for HttpCacheWriteOptions
impl UnsafeUnpin for HttpCacheWriteOptions
impl UnwindSafe for HttpCacheWriteOptions
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