pub enum RandomxError {
CacheAllocError,
DatasetAllocError,
VmAllocError,
}Variants§
CacheAllocError
Occurs when allocating the RandomX cache fails.
Reasons include:
- Memory allocation fails
- The JIT flag is set but the current platform does not support it
- An invalid or unsupported ARGON2 value is set
DatasetAllocError
Occurs when allocating a RandomX dataset fails.
Reasons include:
- Memory allocation fails
VmAllocError
Occurs when creating a VM fails.
Reasons include:
- Scratchpad memory allocation fails
- Unsupported flags
Trait Implementations§
Source§impl Debug for RandomxError
impl Debug for RandomxError
Source§impl Display for RandomxError
impl Display for RandomxError
Source§impl Error for RandomxError
impl Error for RandomxError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for RandomxError
impl RefUnwindSafe for RandomxError
impl Send for RandomxError
impl Sync for RandomxError
impl Unpin for RandomxError
impl UnwindSafe for RandomxError
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