#[repr(u32)]pub enum CustomError {
CooldownNotFinished = 0,
NothingToClaim = 1,
NotEnoughToken = 2,
Unauthorized = 3,
InsufficientBond = 4,
InsufficientTreasuryBalance = 5,
AvsNotActive = 6,
OperatorNotActive = 7,
OperatorNotOptedIn = 8,
TaskNotCompleted = 9,
ChallengeAlreadyResolved = 10,
}Variants§
CooldownNotFinished = 0
NothingToClaim = 1
NotEnoughToken = 2
InsufficientBond = 4
InsufficientTreasuryBalance = 5
AvsNotActive = 6
OperatorNotActive = 7
OperatorNotOptedIn = 8
TaskNotCompleted = 9
ChallengeAlreadyResolved = 10
Implementations§
Trait Implementations§
Source§impl Clone for CustomError
impl Clone for CustomError
Source§fn clone(&self) -> CustomError
fn clone(&self) -> CustomError
Returns a duplicate 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 CustomError
impl Debug for CustomError
Source§impl Display for CustomError
impl Display for CustomError
Source§impl From<CustomError> for Error
impl From<CustomError> for Error
Source§fn from(error_code: CustomError) -> Error
fn from(error_code: CustomError) -> Error
Converts to this type from the input type.
Source§impl From<CustomError> for u32
impl From<CustomError> for u32
Source§fn from(e: CustomError) -> u32
fn from(e: CustomError) -> u32
Converts to this type from the input type.
impl Copy for CustomError
Auto Trait Implementations§
impl Freeze for CustomError
impl RefUnwindSafe for CustomError
impl Send for CustomError
impl Sync for CustomError
impl Unpin for CustomError
impl UnwindSafe for CustomError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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