Enum runtime::error::RuntimeErrorType
source · [−]pub enum RuntimeErrorType {
Show 16 variants
TypeError,
IntegerTooBigError,
AttributeError,
InternalError,
IndexOutOfBounds,
ChildProcessError,
VariableUndefinedError,
IOError,
SysInfoError,
PoisonError,
BorrowError,
BorrowMutError,
MutateImmutableError,
KeyError,
OpenError,
AssertionError,
}
Variants
TypeError
IntegerTooBigError
AttributeError
InternalError
IndexOutOfBounds
ChildProcessError
VariableUndefinedError
Caused by trying to read an uninitialized variable
IOError
Wrapping an std::io::Error
SysInfoError
An error raised by the sys_info crate
PoisonError
An error raised by trying to lock() a poisoned mutex on an Object
BorrowError
An error raised by trying to modify and read something at the same time
BorrowMutError
MutateImmutableError
KeyError
Caused by trying to read a key that doesn’t exist in a dictionary
OpenError
AssertionError
Caused by a runtime call to the assert
function
Trait Implementations
sourceimpl Clone for RuntimeErrorType
impl Clone for RuntimeErrorType
sourcefn clone(&self) -> RuntimeErrorType
fn clone(&self) -> RuntimeErrorType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RuntimeErrorType
impl Debug for RuntimeErrorType
impl Copy for RuntimeErrorType
Auto Trait Implementations
impl RefUnwindSafe for RuntimeErrorType
impl Send for RuntimeErrorType
impl Sync for RuntimeErrorType
impl Unpin for RuntimeErrorType
impl UnwindSafe for RuntimeErrorType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more