pub enum ShardingRegistryOpsError {
ShardNotFound(Principal),
InvalidKey(String),
PoolMismatch {
pid: Principal,
expected: String,
actual: String,
},
SlotOccupied {
pool: String,
slot: u32,
pid: Principal,
},
}Expand description
ShardingRegistryOpsError Storage-layer errors for sharding registry CRUD and consistency checks.
Variants§
Trait Implementations§
Source§impl Debug for ShardingRegistryOpsError
impl Debug for ShardingRegistryOpsError
Source§impl Display for ShardingRegistryOpsError
impl Display for ShardingRegistryOpsError
Source§impl Error for ShardingRegistryOpsError
impl Error for ShardingRegistryOpsError
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 From<ShardingRegistryOpsError> for Error
impl From<ShardingRegistryOpsError> for Error
Source§fn from(err: ShardingRegistryOpsError) -> Self
fn from(err: ShardingRegistryOpsError) -> Self
Converts to this type from the input type.
Source§impl From<ShardingRegistryOpsError> for StorageOpsError
impl From<ShardingRegistryOpsError> for StorageOpsError
Source§fn from(source: ShardingRegistryOpsError) -> Self
fn from(source: ShardingRegistryOpsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShardingRegistryOpsError
impl RefUnwindSafe for ShardingRegistryOpsError
impl Send for ShardingRegistryOpsError
impl Sync for ShardingRegistryOpsError
impl Unpin for ShardingRegistryOpsError
impl UnwindSafe for ShardingRegistryOpsError
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