#[repr(u32)]pub enum RandomnessError {
InvalidNumberOfBytes = 0,
InvalidCallback = 1,
MissingCallbackAccount = 2,
InvalidEscrow = 3,
InsufficientFunds = 4,
CpiUnauthorized = 5,
RequestStillActive = 6,
RequestAlreadyCompleted = 7,
ErrorMessageOverflow = 8,
IncorrectCallbackProgramId = 9,
ProgramWalletInsufficientFunds = 10,
}
Variants§
InvalidNumberOfBytes = 0
InvalidCallback = 1
MissingCallbackAccount = 2
InvalidEscrow = 3
InsufficientFunds = 4
RequestStillActive = 6
RequestAlreadyCompleted = 7
ErrorMessageOverflow = 8
IncorrectCallbackProgramId = 9
ProgramWalletInsufficientFunds = 10
Implementations§
Trait Implementations§
source§impl Clone for RandomnessError
impl Clone for RandomnessError
source§fn clone(&self) -> RandomnessError
fn clone(&self) -> RandomnessError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RandomnessError
impl Debug for RandomnessError
source§impl Display for RandomnessError
impl Display for RandomnessError
source§impl From<RandomnessError> for Error
impl From<RandomnessError> for Error
source§fn from(error_code: RandomnessError) -> Error
fn from(error_code: RandomnessError) -> Error
Converts to this type from the input type.
source§impl From<RandomnessError> for u32
impl From<RandomnessError> for u32
source§fn from(e: RandomnessError) -> u32
fn from(e: RandomnessError) -> u32
Converts to this type from the input type.
source§impl PartialEq for RandomnessError
impl PartialEq for RandomnessError
source§fn eq(&self, other: &RandomnessError) -> bool
fn eq(&self, other: &RandomnessError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RandomnessError
impl Eq for RandomnessError
impl StructuralPartialEq for RandomnessError
Auto Trait Implementations§
impl RefUnwindSafe for RandomnessError
impl Send for RandomnessError
impl Sync for RandomnessError
impl Unpin for RandomnessError
impl UnwindSafe for RandomnessError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.