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: u64target_lamports_per_signature: u64target_signatures_per_slot: u64min_lamports_per_signature: u64max_lamports_per_signature: u64burn_percent: u8

Implementations

impl FeeRateGovernor[src]

pub fn new(
    target_lamports_per_signature: u64,
    target_signatures_per_slot: u64
) -> FeeRateGovernor
[src]

pub fn new_derived(
    base_fee_rate_governor: &FeeRateGovernor,
    latest_signatures_per_slot: u64
) -> FeeRateGovernor
[src]

pub fn burn(&self, fees: u64) -> (u64, u64)[src]

calculate unburned fee from a fee total, returns (unburned, burned)

pub fn create_fee_calculator(&self) -> FeeCalculator[src]

create a FeeCalculator based on current cluster signature throughput

Trait Implementations

impl Clone for FeeRateGovernor[src]

impl Debug for FeeRateGovernor[src]

impl Default for FeeRateGovernor[src]

impl<'de> Deserialize<'de> for FeeRateGovernor[src]

impl Eq for FeeRateGovernor[src]

impl PartialEq<FeeRateGovernor> for FeeRateGovernor[src]

impl Serialize for FeeRateGovernor[src]

impl StructuralEq for FeeRateGovernor[src]

impl StructuralPartialEq for FeeRateGovernor[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]