Trait solana_sdk::sysvar::Sysvar[][src]

pub trait Sysvar: SysvarId + Default + Serialize + DeserializeOwned {
    pub fn size_of() -> usize { ... }
pub fn from_account_info(
        account_info: &AccountInfo<'_>
    ) -> Result<Self, ProgramError> { ... }
pub fn to_account_info(
        &self,
        account_info: &mut AccountInfo<'_>
    ) -> Option<()> { ... } }

Provided methods

pub fn size_of() -> usize[src]

pub fn from_account_info(
    account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError>
[src]

pub fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>[src]

Loading content...

Implementations on Foreign Types

impl Sysvar for Vec<Instruction, Global>[src]

Loading content...

Implementors

impl Sysvar for Clock[src]

impl Sysvar for EpochSchedule[src]

impl Sysvar for Fees[src]

impl Sysvar for solana_sdk::sysvar::recent_blockhashes::RecentBlockhashes[src]

impl Sysvar for solana_sdk::sysvar::recent_evm_blockhashes::RecentBlockhashes[src]

impl Sysvar for Rent[src]

impl Sysvar for Rewards[src]

impl Sysvar for SlotHashes[src]

impl Sysvar for SlotHistory[src]

impl Sysvar for StakeHistory[src]

Loading content...