[][src]Struct solana_genesis::unlocks::Unlock

pub struct Unlock {
    pub epoch: Epoch,
    pub prev_fraction: f64,
    pub fraction: f64,
}

describes an unlock event

Fields

epoch: Epoch

the epoch height at which this unlock occurs

prev_fraction: f64

the fraction that was unlocked last iteration

fraction: f64

the fraction unlocked this iteration

Implementations

impl Unlock[src]

pub fn amount(&self, total: u64) -> u64[src]

the number of lamports unlocked at this event

Trait Implementations

impl Debug for Unlock[src]

impl Default for Unlock[src]

Auto Trait Implementations

impl RefUnwindSafe for Unlock

impl Send for Unlock

impl Sync for Unlock

impl Unpin for Unlock

impl UnwindSafe for Unlock

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