#[non_exhaustive]pub enum KernelError {
Show 13 variants
PackNotFound(String),
DuplicatePack(String),
ConnectorNotAllowed {
connector: String,
pack_id: String,
},
PackCapabilityBoundary {
pack_id: String,
capability: Capability,
},
Pack(PackError),
Policy(PolicyError),
Harness(HarnessError),
Connector(ConnectorError),
RuntimePlane(RuntimePlaneError),
ToolPlane(ToolPlaneError),
MemoryPlane(MemoryPlaneError),
Integration(IntegrationError),
Audit(AuditError),
}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.
PackNotFound(String)
DuplicatePack(String)
ConnectorNotAllowed
PackCapabilityBoundary
Pack(PackError)
Policy(PolicyError)
Harness(HarnessError)
Connector(ConnectorError)
RuntimePlane(RuntimePlaneError)
ToolPlane(ToolPlaneError)
MemoryPlane(MemoryPlaneError)
Integration(IntegrationError)
Audit(AuditError)
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
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<AuditError> for KernelError
impl From<AuditError> for KernelError
Source§fn from(source: AuditError) -> Self
fn from(source: AuditError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectorError> for KernelError
impl From<ConnectorError> for KernelError
Source§fn from(source: ConnectorError) -> Self
fn from(source: ConnectorError) -> Self
Converts to this type from the input type.
Source§impl From<HarnessError> for KernelError
impl From<HarnessError> for KernelError
Source§fn from(source: HarnessError) -> Self
fn from(source: HarnessError) -> Self
Converts to this type from the input type.
Source§impl From<IntegrationError> for KernelError
impl From<IntegrationError> for KernelError
Source§fn from(source: IntegrationError) -> Self
fn from(source: IntegrationError) -> Self
Converts to this type from the input type.
Source§impl From<MemoryPlaneError> for KernelError
impl From<MemoryPlaneError> for KernelError
Source§fn from(source: MemoryPlaneError) -> Self
fn from(source: MemoryPlaneError) -> Self
Converts to this type from the input type.
Source§impl From<PackError> for KernelError
impl From<PackError> for KernelError
Source§impl From<PolicyError> for KernelError
impl From<PolicyError> for KernelError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimePlaneError> for KernelError
impl From<RuntimePlaneError> for KernelError
Source§fn from(source: RuntimePlaneError) -> Self
fn from(source: RuntimePlaneError) -> Self
Converts to this type from the input type.
Source§impl From<ToolPlaneError> for KernelError
impl From<ToolPlaneError> for KernelError
Source§fn from(source: ToolPlaneError) -> Self
fn from(source: ToolPlaneError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KernelError
impl PartialEq for KernelError
impl Eq for KernelError
impl StructuralPartialEq for KernelError
Auto Trait Implementations§
impl Freeze for KernelError
impl RefUnwindSafe for KernelError
impl Send for KernelError
impl Sync for KernelError
impl Unpin for KernelError
impl UnsafeUnpin for KernelError
impl UnwindSafe for KernelError
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