pub enum ReadConsistency {
Strong,
Eventual,
BoundedStaleness,
}Expand description
Read consistency level for queries (Turbopuffer-inspired)
Controls the trade-off between read latency and data freshness.
Strong: Read from primary only, ensures latest data (higher latency)Eventual: Read from any replica, may return stale data (lower latency)BoundedStaleness: Allow reads from replicas within staleness threshold
Variants§
Strong
Read from primary replica only - ensures latest data
Eventual
Read from any available replica - faster but may be stale
BoundedStaleness
Allow staleness up to specified milliseconds
Trait Implementations§
Source§impl Clone for ReadConsistency
impl Clone for ReadConsistency
Source§fn clone(&self) -> ReadConsistency
fn clone(&self) -> ReadConsistency
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 ReadConsistency
impl Debug for ReadConsistency
Source§impl Default for ReadConsistency
impl Default for ReadConsistency
Source§fn default() -> ReadConsistency
fn default() -> ReadConsistency
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadConsistency
impl<'de> Deserialize<'de> for ReadConsistency
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
Source§impl PartialEq for ReadConsistency
impl PartialEq for ReadConsistency
Source§impl Serialize for ReadConsistency
impl Serialize for ReadConsistency
impl Copy for ReadConsistency
impl Eq for ReadConsistency
impl StructuralPartialEq for ReadConsistency
Auto Trait Implementations§
impl Freeze for ReadConsistency
impl RefUnwindSafe for ReadConsistency
impl Send for ReadConsistency
impl Sync for ReadConsistency
impl Unpin for ReadConsistency
impl UnsafeUnpin for ReadConsistency
impl UnwindSafe for ReadConsistency
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