Enum NerveError
pub enum NerveError {
Memory(String),
Thread(String),
Node(String),
Communication(String),
QoS(String),
Integration(String),
Configuration(String),
Plugin(String),
Timeout(String),
InvalidState(String),
ResourceExhausted(String),
Component {
component_type: ComponentType,
message: String,
},
}Expand description
Core error type for Nerve Framework components
Variants§
Memory(String)
Memory-related errors
Thread(String)
Thread-related errors
Node(String)
Node-related errors
Communication(String)
Communication-related errors
QoS(String)
QoS-related errors
Integration(String)
Integration-related errors
Configuration(String)
Configuration errors
Plugin(String)
Plugin-related errors
Timeout(String)
Timeout errors
InvalidState(String)
Invalid state errors
ResourceExhausted(String)
Resource exhaustion errors
Component
Component-specific errors
Fields
§
component_type: ComponentTypeComponent type that generated the error
Trait Implementations§
§impl Debug for NerveError
impl Debug for NerveError
§impl Display for NerveError
impl Display for NerveError
§impl Error for NerveError
impl Error for NerveError
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()
§impl ErrorExt for NerveError
impl ErrorExt for NerveError
§fn with_context(
self,
component: ComponentType,
operation: impl Into<String>,
) -> ContextualError
fn with_context( self, component: ComponentType, operation: impl Into<String>, ) -> ContextualError
Convert to contextual error with basic context
§fn with_full_context(
self,
severity: ErrorSeverity,
component: ComponentType,
operation: impl Into<String>,
context: Option<String>,
) -> ContextualError
fn with_full_context( self, severity: ErrorSeverity, component: ComponentType, operation: impl Into<String>, context: Option<String>, ) -> ContextualError
Convert to contextual error with full context
Source§impl From<SystemError> for NerveError
impl From<SystemError> for NerveError
Source§fn from(error: SystemError) -> Self
fn from(error: SystemError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NerveError
impl RefUnwindSafe for NerveError
impl Send for NerveError
impl Sync for NerveError
impl Unpin for NerveError
impl UnwindSafe for NerveError
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