#[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
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