Enum gstd::errors::ReservationError
source · #[non_exhaustive]#[repr(u32)]pub enum ReservationError {
InvalidReservationId = 500,
ReservationsLimitReached = 501,
ZeroReservationDuration = 502,
ZeroReservationAmount = 503,
ReservationBelowMailboxThreshold = 504,
}
Expand description
Reservation error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidReservationId = 500
An error occurs in attempt to unreserve gas with non-existing reservation ID.
ReservationsLimitReached = 501
An error occurs in attempt to reserve more times than allowed.
ZeroReservationDuration = 502
An error occurs in attempt to create reservation for 0 blocks.
ZeroReservationAmount = 503
An error occurs in attempt to reserve zero gas.
ReservationBelowMailboxThreshold = 504
An error occurs in attempt to reserve gas less than mailbox threshold.
Trait Implementations§
source§impl Clone for ReservationError
impl Clone for ReservationError
source§fn clone(&self) -> ReservationError
fn clone(&self) -> ReservationError
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 ReservationError
impl Debug for ReservationError
source§impl Display for ReservationError
impl Display for ReservationError
source§impl From<ReservationError> for ExtError
impl From<ReservationError> for ExtError
source§fn from(original: ReservationError) -> ExtError
fn from(original: ReservationError) -> ExtError
Converts to this type from the input type.
source§impl Hash for ReservationError
impl Hash for ReservationError
source§impl Ord for ReservationError
impl Ord for ReservationError
source§fn cmp(&self, other: &ReservationError) -> Ordering
fn cmp(&self, other: &ReservationError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReservationError
impl PartialEq for ReservationError
source§impl PartialOrd for ReservationError
impl PartialOrd for ReservationError
source§impl Sequence for ReservationError
impl Sequence for ReservationError
source§const CARDINALITY: usize = 5usize
const CARDINALITY: usize = 5usize
Number of values of type
Self
. Read moresource§fn next(&self) -> Option<ReservationError>
fn next(&self) -> Option<ReservationError>
source§fn previous(&self) -> Option<ReservationError>
fn previous(&self) -> Option<ReservationError>
impl Copy for ReservationError
impl Eq for ReservationError
impl StructuralPartialEq for ReservationError
Auto Trait Implementations§
impl Freeze for ReservationError
impl RefUnwindSafe for ReservationError
impl Send for ReservationError
impl Sync for ReservationError
impl Unpin for ReservationError
impl UnwindSafe for ReservationError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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