pub enum ShardRange {
All {
total: u16,
},
Range {
start: u16,
end: u16,
total: u16,
},
Specific {
ids: Vec<u16>,
total: u16,
},
}Expand description
Specifies which shards a Cluster should manage.
Variants§
All
Manage all shards (total count from API or config).
Range
Manage a specific range of shards.
Fields
Specific
Manage specific shard IDs.
Implementations§
Source§impl ShardRange
impl ShardRange
Trait Implementations§
Source§impl Clone for ShardRange
impl Clone for ShardRange
Source§fn clone(&self) -> ShardRange
fn clone(&self) -> ShardRange
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 moreAuto Trait Implementations§
impl Freeze for ShardRange
impl RefUnwindSafe for ShardRange
impl Send for ShardRange
impl Sync for ShardRange
impl Unpin for ShardRange
impl UnwindSafe for ShardRange
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