pub struct CacheConfiguration { /* private fields */ }Expand description
Validated, protocol-independent cache capacity.
Implementations§
Source§impl CacheConfiguration
impl CacheConfiguration
Sourcepub fn new(capacity: usize) -> Result<Self, CacheConfigError>
pub fn new(capacity: usize) -> Result<Self, CacheConfigError>
Validate capacity before binding it to key, value, or address types.
§Errors
Returns CacheConfigError::ZeroCapacity for zero capacity.
Trait Implementations§
Source§impl Clone for CacheConfiguration
impl Clone for CacheConfiguration
Source§fn clone(&self) -> CacheConfiguration
fn clone(&self) -> CacheConfiguration
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 CacheConfiguration
impl Debug for CacheConfiguration
Source§impl PartialEq for CacheConfiguration
impl PartialEq for CacheConfiguration
impl Copy for CacheConfiguration
impl Eq for CacheConfiguration
impl StructuralPartialEq for CacheConfiguration
Auto Trait Implementations§
impl Freeze for CacheConfiguration
impl RefUnwindSafe for CacheConfiguration
impl Send for CacheConfiguration
impl Sync for CacheConfiguration
impl Unpin for CacheConfiguration
impl UnsafeUnpin for CacheConfiguration
impl UnwindSafe for CacheConfiguration
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