Trait AccountInfoLoader

Source
pub trait AccountInfoLoader {
    // Required methods
    fn is_archive(&self) -> Result<&Self, ProgramError>;
    fn is_epoch(&self) -> Result<&Self, ProgramError>;
    fn is_treasury(&self) -> Result<&Self, ProgramError>;
    fn is_treasury_ata(&self) -> Result<&Self, ProgramError>;
    fn is_spool(&self) -> Result<&Self, ProgramError>;
}

Required Methods§

Source

fn is_archive(&self) -> Result<&Self, ProgramError>

Source

fn is_epoch(&self) -> Result<&Self, ProgramError>

Source

fn is_treasury(&self) -> Result<&Self, ProgramError>

Source

fn is_treasury_ata(&self) -> Result<&Self, ProgramError>

Source

fn is_spool(&self) -> Result<&Self, ProgramError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AccountInfoLoader for AccountInfo<'_>

Implementors§