pub struct Tier { /* private fields */ }Expand description
A tier with its replicasets.
Implementations§
Source§impl Tier
impl Tier
Sourcepub fn replicasets(&self) -> &[Replicaset]
pub fn replicasets(&self) -> &[Replicaset]
The tier’s replicasets.
Sourcepub fn bucket_count(&self) -> u64
pub fn bucket_count(&self) -> u64
Number of buckets the tier is configured with.
Sourcepub fn bucket_map(&self) -> Result<BucketMap<'_>, Error>
pub fn bucket_map(&self) -> Result<BucketMap<'_>, Error>
Bucket ranges by the UUID of the replicaset owning them.
§Errors
Returns Error::IncompleteBucketMap if the ranges leave some of the tier’s
buckets uncovered.
Trait Implementations§
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
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