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
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>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more