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

pub struct Processor {}
Expand description

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

Blanket Implementations

impl<T> AbiExample for T

pub default fn example() -> T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V