#[repr(u32)]pub enum LockerError {
UnlockDateInPast = 0,
ZeroAmount = 1,
StillLocked = 2,
LockDurationTooLong = 3,
CannotCloseWithheldFees = 4,
BurnAmountExceedsLocked = 5,
MathOverflow = 6,
InsufficientFunds = 7,
InvalidBatchAccounts = 8,
}Variants§
UnlockDateInPast = 0
ZeroAmount = 1
StillLocked = 2
LockDurationTooLong = 3
CannotCloseWithheldFees = 4
BurnAmountExceedsLocked = 5
MathOverflow = 6
InsufficientFunds = 7
InvalidBatchAccounts = 8
Implementations§
Trait Implementations§
Source§impl Clone for LockerError
impl Clone for LockerError
impl Copy for LockerError
Source§impl Debug for LockerError
impl Debug for LockerError
Source§impl Display for LockerError
impl Display for LockerError
Source§impl From<LockerError> for u32
impl From<LockerError> for u32
Source§fn from(e: LockerError) -> u32
fn from(e: LockerError) -> u32
Converts to this type from the input type.
Source§impl From<LockerError> for Error
impl From<LockerError> for Error
Source§fn from(error_code: LockerError) -> Error
fn from(error_code: LockerError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LockerError
impl RefUnwindSafe for LockerError
impl Send for LockerError
impl Sync for LockerError
impl Unpin for LockerError
impl UnsafeUnpin for LockerError
impl UnwindSafe for LockerError
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