pub enum InventoryRecordError {
UnsupportedVersion(u16),
EmptyInventory,
TooManyTargets,
InvalidPrincipal(&'static str),
RoleTooLarge,
Checksum(ChecksumError),
DuplicateTarget(String),
UnknownTarget(String),
MissingParent {
canister_id: String,
parent: String,
},
Cycle(String),
}Expand description
Typed declared identity, graph or resource-bound rejection.
Variants§
UnsupportedVersion(u16)
Only product generation v1 is maintained.
EmptyInventory
Exact inventory cannot be empty.
TooManyTargets
Target count exceeds the maintained bound.
InvalidPrincipal(&'static str)
Principal text fails canonical admission at this named field.
RoleTooLarge
Role text exceeds its UTF-8 byte bound.
Checksum(ChecksumError)
Module digest fails canonical SHA-256 admission.
DuplicateTarget(String)
Equivalent physical target appeared more than once.
UnknownTarget(String)
Selected exact principal is absent.
MissingParent
Parent relationship points outside the declared forest.
Cycle(String)
Parent edges form a cycle, including self-parenting.
Trait Implementations§
Source§impl Debug for InventoryRecordError
impl Debug for InventoryRecordError
Source§impl Display for InventoryRecordError
impl Display for InventoryRecordError
Source§impl Error for InventoryRecordError
impl Error for InventoryRecordError
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<ChecksumError> for InventoryRecordError
impl From<ChecksumError> for InventoryRecordError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<InventoryRecordError> for OperationPlanError
impl From<InventoryRecordError> for OperationPlanError
Source§fn from(source: InventoryRecordError) -> Self
fn from(source: InventoryRecordError) -> Self
Converts to this type from the input type.
Source§impl From<InventoryRecordError> for SelectionError
impl From<InventoryRecordError> for SelectionError
Source§fn from(source: InventoryRecordError) -> Self
fn from(source: InventoryRecordError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InventoryRecordError
impl RefUnwindSafe for InventoryRecordError
impl Send for InventoryRecordError
impl Sync for InventoryRecordError
impl Unpin for InventoryRecordError
impl UnsafeUnpin for InventoryRecordError
impl UnwindSafe for InventoryRecordError
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