pub struct CsConfig {
pub variant: String,
pub capacity_mb: usize,
pub shards: Option<usize>,
pub admission_policy: String,
}Expand description
Content store configuration.
[cs]
variant = "lru" # "lru" (default), "sharded-lru", "null"
capacity_mb = 64
shards = 4 # only for "sharded-lru"
admission_policy = "default" # "default" or "admit-all"Fields§
§variant: StringCS implementation variant.
capacity_mb: usizeCapacity in megabytes (0 = disable).
shards: Option<usize>Number of shards (only for “sharded-lru”).
admission_policy: StringAdmission policy: “default” or “admit-all”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CsConfig
impl<'de> Deserialize<'de> for CsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CsConfig
impl RefUnwindSafe for CsConfig
impl Send for CsConfig
impl Sync for CsConfig
impl Unpin for CsConfig
impl UnwindSafe for CsConfig
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