pub struct FamilyConfig {
pub name: &'static str,
pub kind: FamilyKind,
pub compression: Compression,
pub initial_shard_bits: ShardBits,
}Expand description
Configuration for a single family to describe how the data is stored.
Fields§
§name: &'static str§kind: FamilyKind§compression: Compression§initial_shard_bits: ShardBitsInitial sharding factor for the family. There will be 2^ShardBits shards of each family.
The shard count follows the size of the family, see DbConfig::target_shard_size.
This is just a hint to bootstrap the family. 0 would always work, but families with lots
of data would benefit from starting with many shards since this influences how initial
commits shard outputs.
Trait Implementations§
Source§impl Clone for FamilyConfig
impl Clone for FamilyConfig
impl Copy for FamilyConfig
Auto Trait Implementations§
impl Freeze for FamilyConfig
impl RefUnwindSafe for FamilyConfig
impl Send for FamilyConfig
impl Sync for FamilyConfig
impl Unpin for FamilyConfig
impl UnsafeUnpin for FamilyConfig
impl UnwindSafe for FamilyConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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