#[non_exhaustive]pub struct StoreCapabilities {
pub atomic_multi_key: bool,
pub reserved_batch_ops: usize,
pub key_classes: KeyClasses,
pub membership: MembershipMode,
pub implicit_layout_version: Option<u32>,
}Expand description
What a store supports. The pipeline plans around it. Start from
StoreCapabilities::full or StoreCapabilities::refs_only and set
fields: the struct is #[non_exhaustive], so later fields default
safely.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.atomic_multi_key: boolfalse: a batch holds at most one write, and at most one key
precondition, on that same key (plus any NotAfter). The pipeline
then issues sequential batches.
reserved_batch_ops: usizeOperations reserved for a RefIndex target-local atomic apply extension.
key_classes: KeyClassesWhich key classes the store accepts.
membership: MembershipModeHow membership is decided.
implicit_layout_version: Option<u32>The layout version of a store that cannot hold the v key
(RefsOnly): its format is versioned elsewhere, and planners skip
the layout-version precondition. None for stores that hold v.
Implementations§
Trait Implementations§
Source§impl Clone for StoreCapabilities
impl Clone for StoreCapabilities
impl Copy for StoreCapabilities
Source§impl Debug for StoreCapabilities
impl Debug for StoreCapabilities
impl Eq for StoreCapabilities
Source§impl PartialEq for StoreCapabilities
impl PartialEq for StoreCapabilities
impl StructuralPartialEq for StoreCapabilities
Auto Trait Implementations§
impl Freeze for StoreCapabilities
impl RefUnwindSafe for StoreCapabilities
impl Send for StoreCapabilities
impl Sync for StoreCapabilities
impl Unpin for StoreCapabilities
impl UnsafeUnpin for StoreCapabilities
impl UnwindSafe for StoreCapabilities
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