pub enum StateError {
Open {
path: String,
source: Error,
},
StateDir {
path: String,
source: Error,
},
Migrate {
source: Error,
},
Query {
source: Error,
},
InstanceExists {
name: String,
existing_substrate: String,
},
InstanceNotFound {
name: String,
},
LockHeld {
instance: String,
operation: String,
holder_pid: u32,
acquired_at: i64,
},
RemoteOpen {
message: String,
},
RemoteQuery {
message: String,
},
RemoteRuntime {
message: String,
},
RemoteWorker,
RowDecode {
column: usize,
detail: String,
},
}Variants§
Open
StateDir
Migrate
Query
InstanceExists
InstanceNotFound
LockHeld
RemoteOpen
RemoteQuery
RemoteRuntime
RemoteWorker
RowDecode
Trait Implementations§
Source§impl Debug for StateError
impl Debug for StateError
Source§impl Display for StateError
impl Display for StateError
Source§impl Error for StateError
impl Error for StateError
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 Fault for StateError
impl Fault for StateError
Source§fn remediation(&self) -> String
fn remediation(&self) -> String
How to proceed: a concrete command, flag, or fix.
Source§fn context(&self) -> ErrorContext
fn context(&self) -> ErrorContext
Structured observables for agents (
command, log_path, log_tail, …).Source§impl From<Error> for StateError
impl From<Error> for StateError
Source§impl From<StateError> for EngineError
impl From<StateError> for EngineError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StateError
impl !UnwindSafe for StateError
impl Freeze for StateError
impl Send for StateError
impl Sync for StateError
impl Unpin for StateError
impl UnsafeUnpin for StateError
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