Enum randomx_bindings::error::RandomxError [−][src]
pub enum RandomxError { CacheAllocError, DatasetAllocError, VmAllocError, }
Variants
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
Occurs when allocating a RandomX dataset fails.
Reasons include:
- Memory allocation fails
Occurs when creating a VM fails.
Reasons include:
- Scratchpad memory allocation fails
- Unsupported flags
Trait Implementations
impl Debug for RandomxError
[src]
impl Debug for RandomxError
[src]impl Display for RandomxError
[src]
impl Display for RandomxError
[src]impl Error for RandomxError
[src]
impl Error for RandomxError
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>
[src]
fn cause(&self) -> Option<&dyn Error>
[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl RefUnwindSafe for RandomxError
impl Send for RandomxError
impl Sync for RandomxError
impl Unpin for RandomxError
impl UnwindSafe for RandomxError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more