pub enum ShardExpansionError {
CannotShrink {
current: u32,
requested: u32,
},
ExceedsMax {
requested: u32,
},
NotMultiRaft,
StableRoutingActive,
}Expand description
Why a shard-count expansion request was rejected.
Variants§
CannotShrink
new_count must be strictly greater than the current count.
ExceedsMax
new_count exceeds MAX_VIRTUAL_SHARDS.
NotMultiRaft
Keyed routing / expansion requires multi-Raft (raft_groups > 1).
StableRoutingActive
Stable virtual routing is active — use StableShardRouter::activate_shards.
Trait Implementations§
Source§impl Clone for ShardExpansionError
impl Clone for ShardExpansionError
Source§fn clone(&self) -> ShardExpansionError
fn clone(&self) -> ShardExpansionError
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 moreimpl Copy for ShardExpansionError
Source§impl Debug for ShardExpansionError
impl Debug for ShardExpansionError
Source§impl Display for ShardExpansionError
impl Display for ShardExpansionError
impl Eq for ShardExpansionError
Source§impl Error for ShardExpansionError
impl Error for ShardExpansionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ShardExpansionError
impl PartialEq for ShardExpansionError
impl StructuralPartialEq for ShardExpansionError
Auto Trait Implementations§
impl Freeze for ShardExpansionError
impl RefUnwindSafe for ShardExpansionError
impl Send for ShardExpansionError
impl Sync for ShardExpansionError
impl Unpin for ShardExpansionError
impl UnsafeUnpin for ShardExpansionError
impl UnwindSafe for ShardExpansionError
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