[][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,
}

Fields

epoch: Epochepoch_schedule: EpochScheduleslots_per_year: f64rent: Rent

Methods

impl RentCollector[src]

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

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

pub fn update(&self, account: &mut Account) -> u64[src]

Trait Implementations

impl Clone for RentCollector[src]

impl Default for RentCollector[src]

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

impl Serialize for RentCollector[src]

Auto Trait Implementations

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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>,