pub struct DistributedCacheEntryOptions {
pub absolute_expiration_relative_to_now: Option<Duration>,
pub sliding_expiration: Option<Duration>,
pub size_limit: usize,
}Fields§
§absolute_expiration_relative_to_now: Option<Duration>§sliding_expiration: Option<Duration>§size_limit: usizeImplementations§
Source§impl DistributedCacheEntryOptions
impl DistributedCacheEntryOptions
pub fn new() -> Self
pub fn set_absolute_expiration_relative_to_now(self, d: Duration) -> Self
pub fn set_sliding_expiration(self, d: Duration) -> Self
pub fn set_size_limit(self, bytes: usize) -> Self
Trait Implementations§
Source§impl Clone for DistributedCacheEntryOptions
impl Clone for DistributedCacheEntryOptions
Source§fn clone(&self) -> DistributedCacheEntryOptions
fn clone(&self) -> DistributedCacheEntryOptions
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 moreSource§impl Debug for DistributedCacheEntryOptions
impl Debug for DistributedCacheEntryOptions
Source§impl Default for DistributedCacheEntryOptions
impl Default for DistributedCacheEntryOptions
Source§fn default() -> DistributedCacheEntryOptions
fn default() -> DistributedCacheEntryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DistributedCacheEntryOptions
impl RefUnwindSafe for DistributedCacheEntryOptions
impl Send for DistributedCacheEntryOptions
impl Sync for DistributedCacheEntryOptions
impl Unpin for DistributedCacheEntryOptions
impl UnsafeUnpin for DistributedCacheEntryOptions
impl UnwindSafe for DistributedCacheEntryOptions
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