pub enum ShardingPlanStateView {
AlreadyAssigned {
pid: Principal,
},
UseExisting {
pid: Principal,
},
CreateAllowed,
CreateBlocked {
reason: String,
},
}Expand description
ShardingPlanStateView
Variants§
AlreadyAssigned
Tenant already has a shard assigned.
UseExisting
Tenant can be deterministically assigned to an existing shard (via HRW).
CreateAllowed
Policy allows creation of a new shard.
CreateBlocked
Policy forbids creation of a new shard (e.g., capacity reached).
Trait Implementations§
Source§impl CandidType for ShardingPlanStateView
impl CandidType for ShardingPlanStateView
Source§impl Clone for ShardingPlanStateView
impl Clone for ShardingPlanStateView
Source§fn clone(&self) -> ShardingPlanStateView
fn clone(&self) -> ShardingPlanStateView
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 moreSource§impl Debug for ShardingPlanStateView
impl Debug for ShardingPlanStateView
Source§impl<'de> Deserialize<'de> for ShardingPlanStateView
impl<'de> Deserialize<'de> for ShardingPlanStateView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShardingPlanStateView
impl PartialEq for ShardingPlanStateView
Source§impl Serialize for ShardingPlanStateView
impl Serialize for ShardingPlanStateView
impl Eq for ShardingPlanStateView
impl StructuralPartialEq for ShardingPlanStateView
Auto Trait Implementations§
impl Freeze for ShardingPlanStateView
impl RefUnwindSafe for ShardingPlanStateView
impl Send for ShardingPlanStateView
impl Sync for ShardingPlanStateView
impl Unpin for ShardingPlanStateView
impl UnwindSafe for ShardingPlanStateView
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