Trait solana_sdk::sysvar::Sysvar [−][src]
pub trait Sysvar: SysvarId + Default + Serialize + DeserializeOwned { fn size_of() -> usize { ... } fn from_account_info(
account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError> { ... } fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()> { ... } fn get() -> Result<Self, ProgramError> { ... } }
Provided methods
fn size_of() -> usize
[src]
fn size_of() -> usize
[src]fn from_account_info(
account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError>
[src]
fn from_account_info(
account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError>
[src]fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>
[src]
fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>
[src]fn get() -> Result<Self, ProgramError>
[src]
fn get() -> Result<Self, ProgramError>
[src]Implementors
impl Sysvar for EpochSchedule
[src]
impl Sysvar for EpochSchedule
[src]pub fn get() -> Result<EpochSchedule, ProgramError>
[src]
impl Sysvar for Rewards
[src]
impl Sysvar for SlotHashes
[src]
impl Sysvar for SlotHashes
[src]pub fn size_of() -> usize
[src]
pub fn from_account_info(
_account_info: &AccountInfo<'_>
) -> Result<SlotHashes, ProgramError>
[src]
_account_info: &AccountInfo<'_>
) -> Result<SlotHashes, ProgramError>
impl Sysvar for SlotHistory
[src]
impl Sysvar for SlotHistory
[src]pub fn size_of() -> usize
[src]
pub fn from_account_info(
_account_info: &AccountInfo<'_>
) -> Result<SlotHistory, ProgramError>
[src]
_account_info: &AccountInfo<'_>
) -> Result<SlotHistory, ProgramError>