pub enum StableShardActivationError {
CannotShrink {
current: u32,
requested: u32,
},
ExceedsMax {
requested: u32,
},
ModulusRoutingActive,
NotMultiRaft,
}Expand description
Why stable shard activation was rejected.
Variants§
CannotShrink
new_active must be strictly greater than the current active count.
ExceedsMax
new_active exceeds MAX_VIRTUAL_SHARDS.
ModulusRoutingActive
Tier 1 modulus routing is active — use ShardRouter::expand_shard_count.
NotMultiRaft
Activation requires multi-Raft (raft_groups > 1).
Trait Implementations§
Source§impl Clone for StableShardActivationError
impl Clone for StableShardActivationError
Source§fn clone(&self) -> StableShardActivationError
fn clone(&self) -> StableShardActivationError
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 StableShardActivationError
Source§impl Debug for StableShardActivationError
impl Debug for StableShardActivationError
Source§impl Display for StableShardActivationError
impl Display for StableShardActivationError
impl Eq for StableShardActivationError
Source§impl Error for StableShardActivationError
impl Error for StableShardActivationError
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()
impl StructuralPartialEq for StableShardActivationError
Auto Trait Implementations§
impl Freeze for StableShardActivationError
impl RefUnwindSafe for StableShardActivationError
impl Send for StableShardActivationError
impl Sync for StableShardActivationError
impl Unpin for StableShardActivationError
impl UnsafeUnpin for StableShardActivationError
impl UnwindSafe for StableShardActivationError
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