#[non_exhaustive]pub enum HandoffState {
Idle,
Beginning {
source_region: String,
},
HandingOff {
source_region: String,
remaining_entities: usize,
},
Stopped {
source_region: String,
},
Started {
source_region: String,
target_region: 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.
Idle
No handoff in progress.
Beginning
Source region has been told to begin draining.
HandingOff
Entities are stopping; new messages buffer at the source.
Stopped
All entities stopped; awaiting reassignment.
Started
Shard re-allocated to target_region.
Trait Implementations§
Source§impl Clone for HandoffState
impl Clone for HandoffState
Source§fn clone(&self) -> HandoffState
fn clone(&self) -> HandoffState
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 HandoffState
impl Debug for HandoffState
Source§impl PartialEq for HandoffState
impl PartialEq for HandoffState
Source§fn eq(&self, other: &HandoffState) -> bool
fn eq(&self, other: &HandoffState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HandoffState
impl StructuralPartialEq for HandoffState
Auto Trait Implementations§
impl Freeze for HandoffState
impl RefUnwindSafe for HandoffState
impl Send for HandoffState
impl Sync for HandoffState
impl Unpin for HandoffState
impl UnsafeUnpin for HandoffState
impl UnwindSafe for HandoffState
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