#[repr(u32)]pub enum SwitchboardError {
Show 33 variants
InvalidAggregatorRound = 0,
InvalidStrDecimalConversion = 1,
DecimalConversionError = 2,
IntegerOverflowError = 3,
AccountDiscriminatorMismatch = 4,
VrfEmptyError = 5,
VrfCpiError = 6,
VrfCpiSignedError = 7,
AccountDeserializationError = 8,
StaleFeed = 9,
ConfidenceIntervalExceeded = 10,
InvalidAuthority = 11,
AllowedVarianceExceeded = 12,
InvalidFunctionInput = 13,
PdaDerivationError = 14,
IllegalExecuteAttempt = 15,
InvalidQuote = 16,
InvalidQueue = 17,
InvalidEnclaveSigner = 18,
InvalidNativeMint = 19,
MrEnclavesEmpty = 20,
InvalidMrEnclave = 21,
FunctionNotReady = 22,
UserRequestsDisabled = 23,
FunctionRoutinesDisabled = 24,
PermissionDenied = 25,
ConfigParameterLocked = 26,
FunctionServicesDisabled = 27,
ServiceDisabled = 28,
ServiceWorkerFull = 29,
ServiceWorkerEnclaveFull = 30,
ServiceAlreadyAssignedToWorker = 31,
NetworkError = 32,
}
Variants§
InvalidAggregatorRound = 0
InvalidStrDecimalConversion = 1
DecimalConversionError = 2
IntegerOverflowError = 3
AccountDiscriminatorMismatch = 4
VrfEmptyError = 5
VrfCpiError = 6
VrfCpiSignedError = 7
AccountDeserializationError = 8
StaleFeed = 9
ConfidenceIntervalExceeded = 10
InvalidAuthority = 11
AllowedVarianceExceeded = 12
InvalidFunctionInput = 13
PdaDerivationError = 14
IllegalExecuteAttempt = 15
InvalidQuote = 16
InvalidQueue = 17
InvalidEnclaveSigner = 18
InvalidNativeMint = 19
MrEnclavesEmpty = 20
InvalidMrEnclave = 21
FunctionNotReady = 22
UserRequestsDisabled = 23
FunctionRoutinesDisabled = 24
PermissionDenied = 25
ConfigParameterLocked = 26
FunctionServicesDisabled = 27
ServiceDisabled = 28
ServiceWorkerFull = 29
ServiceWorkerEnclaveFull = 30
ServiceAlreadyAssignedToWorker = 31
NetworkError = 32
Implementations§
Trait Implementations§
source§impl Clone for SwitchboardError
impl Clone for SwitchboardError
source§fn clone(&self) -> SwitchboardError
fn clone(&self) -> SwitchboardError
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 SwitchboardError
impl Debug for SwitchboardError
source§impl Display for SwitchboardError
impl Display for SwitchboardError
source§impl Error for SwitchboardError
impl Error for SwitchboardError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<SwitchboardError> for Error
impl From<SwitchboardError> for Error
source§fn from(error_code: SwitchboardError) -> Error
fn from(error_code: SwitchboardError) -> Error
Converts to this type from the input type.
source§impl From<SwitchboardError> for u32
impl From<SwitchboardError> for u32
source§fn from(e: SwitchboardError) -> u32
fn from(e: SwitchboardError) -> u32
Converts to this type from the input type.
source§impl PartialEq for SwitchboardError
impl PartialEq for SwitchboardError
source§fn eq(&self, other: &SwitchboardError) -> bool
fn eq(&self, other: &SwitchboardError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SwitchboardError
impl Eq for SwitchboardError
impl StructuralPartialEq for SwitchboardError
Auto Trait Implementations§
impl RefUnwindSafe for SwitchboardError
impl Send for SwitchboardError
impl Sync for SwitchboardError
impl Unpin for SwitchboardError
impl UnwindSafe for SwitchboardError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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.