pub struct BucketType {
pub name: String,
pub read_consistency: ConsistencyLevel,
pub write_consistency: ConsistencyLevel,
pub n_val: u8,
}Expand description
Resolved bucket-type bundle stored on the live
PoolConfig.
Mirrors crate::conf::ConfBucketType but with the
consistency strings already parsed into
ConsistencyLevel and the field-name semantics finalised
for the dispatcher’s hot path.
Fields§
§name: StringBucket name. Compared verbatim against the prefix
returned by crate::proto::redis::bucket_name.
read_consistency: ConsistencyLevelRead consistency override.
write_consistency: ConsistencyLevelWrite consistency override.
n_val: u8Replica fan-out cap. 0 means no cap.
Trait Implementations§
Source§impl Clone for BucketType
impl Clone for BucketType
Source§fn clone(&self) -> BucketType
fn clone(&self) -> BucketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BucketType
impl Debug for BucketType
Source§impl PartialEq for BucketType
impl PartialEq for BucketType
Source§fn eq(&self, other: &BucketType) -> bool
fn eq(&self, other: &BucketType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BucketType
impl StructuralPartialEq for BucketType
Auto Trait Implementations§
impl Freeze for BucketType
impl RefUnwindSafe for BucketType
impl Send for BucketType
impl Sync for BucketType
impl Unpin for BucketType
impl UnsafeUnpin for BucketType
impl UnwindSafe for BucketType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.