pub enum PoolPolicyError {
RegisteredInSubnet(Principal),
NonImportableOnLocal {
pid: Principal,
details: String,
},
NotRegisteredInSubnet(Principal),
NotAuthorized,
}Expand description
PoolPolicyError All semantic denials related to pool policy.
These errors:
- are side-effect free
- are safe to bubble through ops/workflows
- describe why an action is not permitted
Variants§
Trait Implementations§
Source§impl Clone for PoolPolicyError
impl Clone for PoolPolicyError
Source§fn clone(&self) -> PoolPolicyError
fn clone(&self) -> PoolPolicyError
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 PoolPolicyError
impl Debug for PoolPolicyError
Source§impl Display for PoolPolicyError
impl Display for PoolPolicyError
Source§impl Error for PoolPolicyError
impl Error for PoolPolicyError
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<PoolPolicyError> for PolicyError
impl From<PoolPolicyError> for PolicyError
Source§fn from(source: PoolPolicyError) -> Self
fn from(source: PoolPolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PoolPolicyError
impl PartialEq for PoolPolicyError
impl Eq for PoolPolicyError
impl StructuralPartialEq for PoolPolicyError
Auto Trait Implementations§
impl Freeze for PoolPolicyError
impl RefUnwindSafe for PoolPolicyError
impl Send for PoolPolicyError
impl Sync for PoolPolicyError
impl Unpin for PoolPolicyError
impl UnwindSafe for PoolPolicyError
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