Enum sol_anon::errors::SolAnonError
source · #[repr(u32)]pub enum SolAnonError {
InvalidAdmin = 0,
InvalidWhitelist = 1,
InvalidSlot = 2,
}
Expand description
Custom error types for the Sol-Anon program.
Variants§
InvalidAdmin = 0
Thrown when an invalid admin tries to perform an admin-only action.
InvalidWhitelist = 1
Thrown when an operation is attempted with an invalid whitelist account.
InvalidSlot = 2
Thrown when an operation is attempted with an invalid slot account.
Implementations§
Trait Implementations§
source§impl Clone for SolAnonError
impl Clone for SolAnonError
source§fn clone(&self) -> SolAnonError
fn clone(&self) -> SolAnonError
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 SolAnonError
impl Debug for SolAnonError
source§impl Display for SolAnonError
impl Display for SolAnonError
source§impl From<SolAnonError> for Error
impl From<SolAnonError> for Error
source§fn from(error_code: SolAnonError) -> Error
fn from(error_code: SolAnonError) -> Error
Converts to this type from the input type.
source§impl From<SolAnonError> for u32
impl From<SolAnonError> for u32
source§fn from(e: SolAnonError) -> u32
fn from(e: SolAnonError) -> u32
Converts to this type from the input type.
impl Copy for SolAnonError
Auto Trait Implementations§
impl Freeze for SolAnonError
impl RefUnwindSafe for SolAnonError
impl Send for SolAnonError
impl Sync for SolAnonError
impl Unpin for SolAnonError
impl UnwindSafe for SolAnonError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more