#[non_exhaustive]pub enum RuntimeStateError {
Construction(RuntimeConstructionError),
ReentrantAccess,
Unavailable,
InconsistentLifecycle,
}Expand description
RuntimeStateError
Failure to enter or maintain one memory runtime’s in-memory lifecycle.
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.
Construction(RuntimeConstructionError)
This thread’s default runtime could not safely claim its backing memory.
ReentrantAccess
A default-runtime operation re-entered while that TLS runtime was borrowed.
The thread-local default runtime is being destroyed and cannot be entered.
InconsistentLifecycle
Internal runtime lifecycle state was inconsistent.
Trait Implementations§
Source§impl Clone for RuntimeStateError
impl Clone for RuntimeStateError
Source§fn clone(&self) -> RuntimeStateError
fn clone(&self) -> RuntimeStateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeStateError
Source§impl Debug for RuntimeStateError
impl Debug for RuntimeStateError
Source§impl Display for RuntimeStateError
impl Display for RuntimeStateError
impl Eq for RuntimeStateError
Source§impl Error for RuntimeStateError
impl Error for RuntimeStateError
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<RuntimeConstructionError> for RuntimeStateError
impl From<RuntimeConstructionError> for RuntimeStateError
Source§fn from(source: RuntimeConstructionError) -> Self
fn from(source: RuntimeConstructionError) -> Self
Converts to this type from the input type.
Source§impl<P> From<RuntimeStateError> for RuntimeBootstrapError<P>
impl<P> From<RuntimeStateError> for RuntimeBootstrapError<P>
Source§fn from(source: RuntimeStateError) -> Self
fn from(source: RuntimeStateError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeStateError> for RuntimeOpenError
impl From<RuntimeStateError> for RuntimeOpenError
Source§fn from(source: RuntimeStateError) -> Self
fn from(source: RuntimeStateError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeStateError> for RuntimeDiagnosticError
impl From<RuntimeStateError> for RuntimeDiagnosticError
Source§fn from(source: RuntimeStateError) -> Self
fn from(source: RuntimeStateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeStateError
impl PartialEq for RuntimeStateError
impl StructuralPartialEq for RuntimeStateError
Auto Trait Implementations§
impl Freeze for RuntimeStateError
impl RefUnwindSafe for RuntimeStateError
impl Send for RuntimeStateError
impl Sync for RuntimeStateError
impl Unpin for RuntimeStateError
impl UnsafeUnpin for RuntimeStateError
impl UnwindSafe for RuntimeStateError
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