pub struct SinglePartition;Expand description
Every row of a namespace in one partition: M0, and the fs-layout and ssh path for good.
Trait Implementations§
Source§impl Clone for SinglePartition
impl Clone for SinglePartition
impl Copy for SinglePartition
Source§impl Debug for SinglePartition
impl Debug for SinglePartition
Source§impl Default for SinglePartition
impl Default for SinglePartition
impl Eq for SinglePartition
Source§impl PartialEq for SinglePartition
impl PartialEq for SinglePartition
Source§impl ShardMap for SinglePartition
impl ShardMap for SinglePartition
Source§fn ref_shard(&self, repo: &RepoId, _ref_name: &str) -> Partition
fn ref_shard(&self, repo: &RepoId, _ref_name: &str) -> Partition
The ref shard of
ref_name: its head, replay records and quota
counters. A branch head and its packmap MUST map to the same shard,
so an AdvanceRefs commits in one batch.Source§fn coordinator(&self, ns: &NamespaceKey) -> Partition
fn coordinator(&self, ns: &NamespaceKey) -> Partition
The namespace coordinator: configuration and the grant epoch.
Source§fn ref_index(&self, repo: &RepoId, _ref_name: &str) -> Partition
fn ref_index(&self, repo: &RepoId, _ref_name: &str) -> Partition
The ref-name index shard that holds
ref_name.Source§fn ref_index_partitions(&self, repo: &RepoId) -> Vec<Partition>
fn ref_index_partitions(&self, repo: &RepoId) -> Vec<Partition>
Every ref-name index shard of
repo, in bucket order.impl StructuralPartialEq for SinglePartition
Auto Trait Implementations§
impl Freeze for SinglePartition
impl RefUnwindSafe for SinglePartition
impl Send for SinglePartition
impl Sync for SinglePartition
impl Unpin for SinglePartition
impl UnsafeUnpin for SinglePartition
impl UnwindSafe for SinglePartition
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