Struct solana_sdk::fee_calculator::FeeRateGovernor [−][src]
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
impl FeeRateGovernor
[src]
pub fn new(
target_lamports_per_signature: u64,
target_signatures_per_slot: u64
) -> FeeRateGovernor
[src]
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
[src]
base_fee_rate_governor: &FeeRateGovernor,
latest_signatures_per_slot: u64
) -> FeeRateGovernor
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]
pub fn clone(&self) -> FeeRateGovernor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FeeRateGovernor
[src]
impl Default for FeeRateGovernor
[src]
pub fn default() -> FeeRateGovernor
[src]
impl<'de> Deserialize<'de> for FeeRateGovernor
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<FeeRateGovernor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<FeeRateGovernor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for FeeRateGovernor
[src]
impl PartialEq<FeeRateGovernor> for FeeRateGovernor
[src]
pub fn eq(&self, other: &FeeRateGovernor) -> bool
[src]
pub fn ne(&self, other: &FeeRateGovernor) -> bool
[src]
impl Serialize for FeeRateGovernor
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,