Struct solana_program::fee_calculator::FeeRateGovernor [−][src]
pub struct FeeRateGovernor { pub lamports_per_signature: u64, pub target_lamports_per_signature: u64, pub target_signatures_per_slot: u64, pub min_lamports_per_signature: u64, pub max_lamports_per_signature: u64, pub burn_percent: u8, }
Fields
lamports_per_signature: u64
target_lamports_per_signature: u64
target_signatures_per_slot: u64
min_lamports_per_signature: u64
max_lamports_per_signature: u64
burn_percent: u8
Implementations
pub fn new_derived(
base_fee_rate_governor: &FeeRateGovernor,
latest_signatures_per_slot: u64
) -> Self
[src]calculate unburned fee from a fee total, returns (unburned, burned)
create a FeeCalculator based on current cluster signature throughput
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FeeRateGovernor
impl Send for FeeRateGovernor
impl Sync for FeeRateGovernor
impl Unpin for FeeRateGovernor
impl UnwindSafe for FeeRateGovernor
Blanket Implementations
Mutably borrows from an owned value. Read more