Struct cfx_rpc_eth_types::FeeHistory
source · pub struct FeeHistory { /* private fields */ }
Implementations§
source§impl FeeHistory
impl FeeHistory
pub fn new() -> Self
pub fn reward(&self) -> &VecDeque<Vec<U256>>
pub fn push_front_block<'a, I>( &mut self, space: Space, percentiles: &Vec<f64>, pivot_header: &BlockHeader, transactions: I ) -> Result<(), String>
pub fn push_front_entry( &mut self, entry: &FeeHistoryCacheEntry, percentiles: &Vec<f64> ) -> Result<(), String>
pub fn finish( &mut self, oldest_block: u64, last_base_price: Option<&SpaceMap<U256>>, space: Space )
Trait Implementations§
source§impl Clone for FeeHistory
impl Clone for FeeHistory
source§fn clone(&self) -> FeeHistory
fn clone(&self) -> FeeHistory
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 FeeHistory
impl Debug for FeeHistory
source§impl Default for FeeHistory
impl Default for FeeHistory
source§fn default() -> FeeHistory
fn default() -> FeeHistory
Returns the “default value” for a type. Read more
source§impl Into<CfxFeeHistory> for FeeHistory
impl Into<CfxFeeHistory> for FeeHistory
source§fn into(self) -> CfxFeeHistory
fn into(self) -> CfxFeeHistory
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for FeeHistory
impl Send for FeeHistory
impl Sync for FeeHistory
impl Unpin for FeeHistory
impl UnwindSafe for FeeHistory
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