pub enum EvictionConfig {
Fifo(FifoConfig),
S3Fifo(S3FifoConfig),
Lru(LruConfig),
Lfu(LfuConfig),
Sieve(SieveConfig),
}Expand description
Eviction algorithm config.
Variants§
Fifo(FifoConfig)
FIFO eviction algorithm config.
S3Fifo(S3FifoConfig)
S3FIFO eviction algorithm config.
Lru(LruConfig)
LRU eviction algorithm config.
Lfu(LfuConfig)
LFU eviction algorithm config.
Sieve(SieveConfig)
Sieve eviction algorithm config.
Trait Implementations§
Source§impl Clone for EvictionConfig
impl Clone for EvictionConfig
Source§fn clone(&self) -> EvictionConfig
fn clone(&self) -> EvictionConfig
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 EvictionConfig
impl Debug for EvictionConfig
Source§impl<'de> Deserialize<'de> for EvictionConfig
impl<'de> Deserialize<'de> for EvictionConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvictionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EvictionConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<FifoConfig> for EvictionConfig
impl From<FifoConfig> for EvictionConfig
Source§fn from(value: FifoConfig) -> EvictionConfig
fn from(value: FifoConfig) -> EvictionConfig
Converts to this type from the input type.
Source§impl From<LfuConfig> for EvictionConfig
impl From<LfuConfig> for EvictionConfig
Source§fn from(value: LfuConfig) -> EvictionConfig
fn from(value: LfuConfig) -> EvictionConfig
Converts to this type from the input type.
Source§impl From<LruConfig> for EvictionConfig
impl From<LruConfig> for EvictionConfig
Source§fn from(value: LruConfig) -> EvictionConfig
fn from(value: LruConfig) -> EvictionConfig
Converts to this type from the input type.
Source§impl From<S3FifoConfig> for EvictionConfig
impl From<S3FifoConfig> for EvictionConfig
Source§fn from(value: S3FifoConfig) -> EvictionConfig
fn from(value: S3FifoConfig) -> EvictionConfig
Converts to this type from the input type.
Source§impl From<SieveConfig> for EvictionConfig
impl From<SieveConfig> for EvictionConfig
Source§fn from(value: SieveConfig) -> EvictionConfig
fn from(value: SieveConfig) -> EvictionConfig
Converts to this type from the input type.
Source§impl Serialize for EvictionConfig
impl Serialize for EvictionConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EvictionConfig
impl RefUnwindSafe for EvictionConfig
impl Send for EvictionConfig
impl Sync for EvictionConfig
impl Unpin for EvictionConfig
impl UnwindSafe for EvictionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
impl<T> Code for Twhere
T: Serialize + DeserializeOwned,
Source§fn encode(&self, writer: &mut impl Write) -> Result<(), Error>
fn encode(&self, writer: &mut impl Write) -> Result<(), Error>
Encode the object into a writer. Read more
Source§fn decode(reader: &mut impl Read) -> Result<T, Error>
fn decode(reader: &mut impl Read) -> Result<T, Error>
Decode the object from a reader. Read more
Source§fn estimated_size(&self) -> usize
fn estimated_size(&self) -> usize
Estimated serialized size of the object. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more