pub enum Error {
Capability(CapabilityError),
Policy(PolicyError),
Rights(RightsError),
Step(StepError),
State(StateError),
Kernel(KernelError),
}Expand description
Unified error type for lion-core operations.
Collects all domain error types so callers only need to handle a single error type.
Variants§
Capability(CapabilityError)
Capability operation error (invalid holder, empty rights, etc.)
Policy(PolicyError)
Policy operation error
Rights(RightsError)
Rights operation error
Step(StepError)
Step execution error
State(StateError)
State operation error
Kernel(KernelError)
Kernel operation error
Trait Implementations§
Source§impl Error for Error
Available on non-extract only.
impl Error for Error
Available on non-
extract only.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<CapabilityError> for Error
impl From<CapabilityError> for Error
Source§fn from(e: CapabilityError) -> Self
fn from(e: CapabilityError) -> Self
Converts to this type from the input type.
Source§impl From<KernelError> for Error
impl From<KernelError> for Error
Source§fn from(e: KernelError) -> Self
fn from(e: KernelError) -> Self
Converts to this type from the input type.
Source§impl From<PolicyError> for Error
impl From<PolicyError> for Error
Source§fn from(e: PolicyError) -> Self
fn from(e: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<RightsError> for Error
impl From<RightsError> for Error
Source§fn from(e: RightsError) -> Self
fn from(e: RightsError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for Error
impl From<StateError> for Error
Source§fn from(e: StateError) -> Self
fn from(e: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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