Struct solana_sdk::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(
target_lamports_per_signature: u64,
target_signatures_per_slot: u64
) -> FeeRateGovernor
pub fn new_derived(
base_fee_rate_governor: &FeeRateGovernor,
latest_signatures_per_slot: u64
) -> FeeRateGovernor
calculate unburned fee from a fee total, returns (unburned, burned)
create a FeeCalculator based on current cluster signature throughput
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FeeRateGovernor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FeeRateGovernor, <__D as Deserializer<'de>>::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 !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
type Output = T
type Output = T
Should always be Self