pub struct ResultCacheConfig {
pub enabled: bool,
pub capacity: usize,
pub ttl: Duration,
}Fields§
§enabled: bool§capacity: usize§ttl: DurationTrait Implementations§
Source§impl Clone for ResultCacheConfig
impl Clone for ResultCacheConfig
Source§fn clone(&self) -> ResultCacheConfig
fn clone(&self) -> ResultCacheConfig
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 ResultCacheConfig
impl Debug for ResultCacheConfig
Source§impl Default for ResultCacheConfig
impl Default for ResultCacheConfig
impl Copy for ResultCacheConfig
Auto Trait Implementations§
impl Freeze for ResultCacheConfig
impl RefUnwindSafe for ResultCacheConfig
impl Send for ResultCacheConfig
impl Sync for ResultCacheConfig
impl Unpin for ResultCacheConfig
impl UnsafeUnpin for ResultCacheConfig
impl UnwindSafe for ResultCacheConfig
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