pub enum KernelError {
Module(String),
Bus(String),
Registry(Error),
ConfigNotFound(String),
DuplicateModule(String),
UnknownModule(String),
Serde(Error),
Denied {
publisher: String,
capability: String,
},
Other(Error),
}Expand description
All errors that can be produced by the kernel and its subsystems.
Variants§
Module(String)
A module operation failed (load, start, stop, unload, etc.).
Bus(String)
A message could not be routed on the bus, e.g. because no receiver is listening or the channel was closed.
Registry(Error)
The state registry returned a database-level error.
ConfigNotFound(String)
A configuration key was not found in the registry.
DuplicateModule(String)
A duplicate module id was registered with the ModuleManager.
UnknownModule(String)
A module id was referenced that is not known to the manager.
Serde(Error)
JSON (de)serialization failed.
Denied
A publish was rejected because the publisher lacks the required capability.
Fields
Other(Error)
An unexpected, unclassified error.
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<Error> for KernelError
impl From<Error> for KernelError
Source§impl From<Error> for KernelError
impl From<Error> for KernelError
Source§impl From<Error> for KernelError
impl From<Error> 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more