Struct spl_token::processor::Processor[][src]

pub struct Processor {}

Program state handler.

Implementations

impl Processor[src]

pub fn process_initialize_mint(
    accounts: &[AccountInfo<'_>],
    decimals: u8,
    mint_authority: Pubkey,
    freeze_authority: COption<Pubkey>
) -> ProgramResult
[src]

Processes an InitializeMint instruction.

pub fn process_initialize_account(accounts: &[AccountInfo<'_>]) -> ProgramResult[src]

Processes an InitializeAccount instruction.

pub fn process_initialize_account2(
    accounts: &[AccountInfo<'_>],
    owner: Pubkey
) -> ProgramResult
[src]

Processes an InitializeAccount2 instruction.

pub fn process_initialize_multisig(
    accounts: &[AccountInfo<'_>],
    m: u8
) -> ProgramResult
[src]

Processes a InitializeMultisig instruction.

pub fn process_transfer(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    amount: u64,
    expected_decimals: Option<u8>
) -> ProgramResult
[src]

Processes a Transfer instruction.

pub fn process_approve(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    amount: u64,
    expected_decimals: Option<u8>
) -> ProgramResult
[src]

Processes an Approve instruction.

pub fn process_revoke(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>]
) -> ProgramResult
[src]

Processes an Revoke instruction.

pub fn process_set_authority(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    authority_type: AuthorityType,
    new_authority: COption<Pubkey>
) -> ProgramResult
[src]

Processes a SetAuthority instruction.

pub fn process_mint_to(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    amount: u64,
    expected_decimals: Option<u8>
) -> ProgramResult
[src]

Processes a MintTo instruction.

pub fn process_burn(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    amount: u64,
    expected_decimals: Option<u8>
) -> ProgramResult
[src]

Processes a Burn instruction.

pub fn process_close_account(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>]
) -> ProgramResult
[src]

Processes a CloseAccount instruction.

pub fn process_toggle_freeze_account(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    freeze: bool
) -> ProgramResult
[src]

Processes a FreezeAccount or a ThawAccount instruction.

pub fn process(
    program_id: &Pubkey,
    accounts: &[AccountInfo<'_>],
    input: &[u8]
) -> ProgramResult
[src]

Processes an Instruction.

pub fn validate_owner(
    program_id: &Pubkey,
    expected_owner: &Pubkey,
    owner_account_info: &AccountInfo<'_>,
    signers: &[AccountInfo<'_>]
) -> ProgramResult
[src]

Validates owner(s) are present

Auto Trait Implementations

impl RefUnwindSafe for Processor

impl Send for Processor

impl Sync for Processor

impl Unpin for Processor

impl UnwindSafe for Processor

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

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