pub enum RuntimePolicyError<P> {
Range(MemoryManagerRangeAuthorityError),
MissingDeclarationMetadata(String),
ReservedStableKeyAuthority {
stable_key: String,
expected_authority: &'static str,
},
Custom(P),
}Expand description
RuntimePolicyError
Failure in generic runtime range policy or caller-supplied policy.
Variants§
Range(MemoryManagerRangeAuthorityError)
Runtime range authority rejected the declaration.
MissingDeclarationMetadata(String)
Runtime metadata is internally inconsistent.
ReservedStableKeyAuthority
ic_memory.* stable keys are reserved to the ic-memory authority.
Custom(P)
Caller-supplied policy rejected the declaration.
Trait Implementations§
Source§impl<P: Clone> Clone for RuntimePolicyError<P>
impl<P: Clone> Clone for RuntimePolicyError<P>
Source§fn clone(&self) -> RuntimePolicyError<P>
fn clone(&self) -> RuntimePolicyError<P>
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 moreSource§impl<P: Debug> Debug for RuntimePolicyError<P>
impl<P: Debug> Debug for RuntimePolicyError<P>
Source§impl<P> Display for RuntimePolicyError<P>where
P: Display,
impl<P> Display for RuntimePolicyError<P>where
P: Display,
Source§impl<P> Error for RuntimePolicyError<P>
impl<P> Error for RuntimePolicyError<P>
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<P> From<MemoryManagerRangeAuthorityError> for RuntimePolicyError<P>
impl<P> From<MemoryManagerRangeAuthorityError> for RuntimePolicyError<P>
Source§fn from(source: MemoryManagerRangeAuthorityError) -> Self
fn from(source: MemoryManagerRangeAuthorityError) -> Self
Converts to this type from the input type.
Source§impl<P: PartialEq> PartialEq for RuntimePolicyError<P>
impl<P: PartialEq> PartialEq for RuntimePolicyError<P>
Source§fn eq(&self, other: &RuntimePolicyError<P>) -> bool
fn eq(&self, other: &RuntimePolicyError<P>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<P: Eq> Eq for RuntimePolicyError<P>
impl<P> StructuralPartialEq for RuntimePolicyError<P>
Auto Trait Implementations§
impl<P> Freeze for RuntimePolicyError<P>where
P: Freeze,
impl<P> RefUnwindSafe for RuntimePolicyError<P>where
P: RefUnwindSafe,
impl<P> Send for RuntimePolicyError<P>where
P: Send,
impl<P> Sync for RuntimePolicyError<P>where
P: Sync,
impl<P> Unpin for RuntimePolicyError<P>where
P: Unpin,
impl<P> UnsafeUnpin for RuntimePolicyError<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for RuntimePolicyError<P>where
P: UnwindSafe,
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