pub enum GasReservationState {
Exists {
amount: u64,
start: u32,
finish: u32,
used: bool,
},
Created {
amount: u64,
duration: u32,
used: bool,
},
Removed {
expiration: u32,
},
}Expand description
Gas reservation state.
Used to control whether reservation was created, removed or nothing happened.
Variants§
Exists
Fields
Reservation exists.
Created
Fields
Reservation will be created.
Removed
Reservation will be removed.
Trait Implementations§
source§impl Clone for GasReservationState
impl Clone for GasReservationState
source§fn clone(&self) -> GasReservationState
fn clone(&self) -> GasReservationState
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 GasReservationState
impl Debug for GasReservationState
source§impl From<GasReservationSlot> for GasReservationState
impl From<GasReservationSlot> for GasReservationState
source§fn from(slot: GasReservationSlot) -> Self
fn from(slot: GasReservationSlot) -> Self
Converts to this type from the input type.
source§impl PartialEq for GasReservationState
impl PartialEq for GasReservationState
source§fn eq(&self, other: &GasReservationState) -> bool
fn eq(&self, other: &GasReservationState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for GasReservationState
impl Eq for GasReservationState
impl StructuralEq for GasReservationState
impl StructuralPartialEq for GasReservationState
Auto Trait Implementations§
impl RefUnwindSafe for GasReservationState
impl Send for GasReservationState
impl Sync for GasReservationState
impl Unpin for GasReservationState
impl UnwindSafe for GasReservationState
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