#[non_exhaustive]pub enum MulticodecOperationError {
UnknownName,
InvalidPrefix,
RegistryInvariant,
AllocationFailure,
}Expand description
Semantic failure reasons for multicodec lookup operations.
The display strings are fixed and do not include caller input. Boundary adapters map these reasons into their public typed error contracts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownName
The requested name is not present in the supported registry.
InvalidPrefix
The input does not start with a supported multicodec prefix.
RegistryInvariant
Primitive registry metadata violated an executor invariant.
AllocationFailure
The bounded semantic result could not reserve its required storage.
Trait Implementations§
Source§impl Clone for MulticodecOperationError
impl Clone for MulticodecOperationError
impl Copy for MulticodecOperationError
Source§impl Debug for MulticodecOperationError
impl Debug for MulticodecOperationError
Source§impl Display for MulticodecOperationError
impl Display for MulticodecOperationError
impl Eq for MulticodecOperationError
Source§impl Error for MulticodecOperationError
impl Error for MulticodecOperationError
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 PartialEq for MulticodecOperationError
impl PartialEq for MulticodecOperationError
impl StructuralPartialEq for MulticodecOperationError
Auto Trait Implementations§
impl Freeze for MulticodecOperationError
impl RefUnwindSafe for MulticodecOperationError
impl Send for MulticodecOperationError
impl Sync for MulticodecOperationError
impl Unpin for MulticodecOperationError
impl UnsafeUnpin for MulticodecOperationError
impl UnwindSafe for MulticodecOperationError
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