#[non_exhaustive]pub enum CoordinatorCommand {
Allocate {
shard_id: String,
region: String,
},
Rebalance {
shard_id: String,
to_region: String,
},
Remove {
shard_id: String,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CoordinatorCommand
impl Clone for CoordinatorCommand
Source§fn clone(&self) -> CoordinatorCommand
fn clone(&self) -> CoordinatorCommand
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 moreAuto Trait Implementations§
impl Freeze for CoordinatorCommand
impl RefUnwindSafe for CoordinatorCommand
impl Send for CoordinatorCommand
impl Sync for CoordinatorCommand
impl Unpin for CoordinatorCommand
impl UnsafeUnpin for CoordinatorCommand
impl UnwindSafe for CoordinatorCommand
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