#[non_exhaustive]pub enum ArkheError {
InstanceNotFound,
CapabilityDenied,
Domain {
code: u32,
payload: Bytes,
},
}Expand description
Top-level kernel error.
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.
InstanceNotFound
Requested InstanceId is not live.
CapabilityDenied
Caller lacks one or more required capability bits.
Domain
Domain-level error. The kernel does not interpret code or
payload; they are an L1/L2 protocol. Payload is canonical bytes
(CanonicalEncode discipline) so cross-replay determinism holds.
Trait Implementations§
Source§impl Clone for ArkheError
impl Clone for ArkheError
Source§fn clone(&self) -> ArkheError
fn clone(&self) -> ArkheError
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 ArkheError
impl Debug for ArkheError
Source§impl Display for ArkheError
impl Display for ArkheError
Source§impl Error for ArkheError
impl Error for ArkheError
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()
Auto Trait Implementations§
impl !Freeze for ArkheError
impl RefUnwindSafe for ArkheError
impl Send for ArkheError
impl Sync for ArkheError
impl Unpin for ArkheError
impl UnsafeUnpin for ArkheError
impl UnwindSafe for ArkheError
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