pub enum NetDbError {
Cortex(CortexAdapterError),
ModelNotIncluded(&'static str),
Snapshot(String),
NoModelsEnabled,
}Expand description
Errors produced by super::NetDb / super::NetDbBuilder
/ super::NetDbSnapshot.
Variants§
Cortex(CortexAdapterError)
An underlying CortEX adapter operation failed.
ModelNotIncluded(&'static str)
A model was accessed that wasn’t included at build time.
(Only raised by the try_* accessors; the panicking
accessors never return this — they panic instead.)
Snapshot(String)
Snapshot encode / decode failure.
NoModelsEnabled
NetDbBuilder::build() / build_from_snapshot() was
called with neither with_tasks() nor with_memories()
configured. Pre-fix this returned a no-op NetDb whose
tasks() / memories() accessors panicked on first call.
Surface it at build time as a typed error so a
misconfigured profile or test fixture turns into a clean
? rather than a process panic.
Trait Implementations§
Source§impl Debug for NetDbError
impl Debug for NetDbError
Source§impl Display for NetDbError
impl Display for NetDbError
Source§impl Error for NetDbError
impl Error for NetDbError
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<CortexAdapterError> for NetDbError
impl From<CortexAdapterError> for NetDbError
Source§fn from(source: CortexAdapterError) -> NetDbError
fn from(source: CortexAdapterError) -> NetDbError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetDbError
impl RefUnwindSafe for NetDbError
impl Send for NetDbError
impl Sync for NetDbError
impl Unpin for NetDbError
impl UnsafeUnpin for NetDbError
impl UnwindSafe for NetDbError
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