[][src]Struct solana_runtime::rent_collector::RentCollector

pub struct RentCollector {
    pub epoch: Epoch,
    pub epoch_schedule: EpochSchedule,
    pub slots_per_year: f64,
    pub rent: Rent,
    pub cluster_type: Option<ClusterType>,
}

Fields

epoch: Epochepoch_schedule: EpochScheduleslots_per_year: f64rent: Rentcluster_type: Option<ClusterType>

Implementations

impl RentCollector[src]

pub fn new(
    epoch: Epoch,
    epoch_schedule: &EpochSchedule,
    slots_per_year: f64,
    rent: &Rent,
    cluster_type: ClusterType
) -> Self
[src]

pub fn clone_with_epoch(&self, epoch: Epoch, cluster_type: ClusterType) -> Self[src]

#[must_use = "add to Bank::collected_rent"]pub fn collect_from_existing_account(
    &self,
    address: &Pubkey,
    account: &mut Account
) -> u64
[src]

#[must_use = "add to Bank::collected_rent"]pub fn collect_from_created_account(
    &self,
    address: &Pubkey,
    account: &mut Account
) -> u64
[src]

Trait Implementations

impl AbiExample for RentCollector[src]

impl Clone for RentCollector[src]

impl Debug for RentCollector[src]

impl Default for RentCollector[src]

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

impl PartialEq<RentCollector> for RentCollector[src]

impl Serialize for RentCollector[src]

impl StructuralPartialEq for RentCollector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

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> Instrument for T[src]

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

impl<T> Same<T> for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,