Enum ethers_middleware::gas_oracle::GasCategory
source · pub enum GasCategory {
SafeLow,
Standard,
Fast,
Fastest,
}Expand description
Generic GasOracle gas price categories.
Variants§
Trait Implementations§
source§impl Clone for GasCategory
impl Clone for GasCategory
source§fn clone(&self) -> GasCategory
fn clone(&self) -> GasCategory
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 GasCategory
impl Debug for GasCategory
source§impl Default for GasCategory
impl Default for GasCategory
source§fn default() -> GasCategory
fn default() -> GasCategory
Returns the “default value” for a type. Read more
source§impl Hash for GasCategory
impl Hash for GasCategory
source§impl Ord for GasCategory
impl Ord for GasCategory
source§fn cmp(&self, other: &GasCategory) -> Ordering
fn cmp(&self, other: &GasCategory) -> 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<GasCategory> for GasCategory
impl PartialEq<GasCategory> for GasCategory
source§fn eq(&self, other: &GasCategory) -> bool
fn eq(&self, other: &GasCategory) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<GasCategory> for GasCategory
impl PartialOrd<GasCategory> for GasCategory
source§fn partial_cmp(&self, other: &GasCategory) -> Option<Ordering>
fn partial_cmp(&self, other: &GasCategory) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for GasCategory
impl Eq for GasCategory
impl StructuralEq for GasCategory
impl StructuralPartialEq for GasCategory
Auto Trait Implementations§
impl RefUnwindSafe for GasCategory
impl Send for GasCategory
impl Sync for GasCategory
impl Unpin for GasCategory
impl UnwindSafe for GasCategory
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.