[][src]Enum spl_token::state::State

pub enum State {}

Program state handler.

Implementations

impl State[src]

pub fn process_initialize_mint(
    accounts: &[AccountInfo],
    amount: u64,
    decimals: u8
) -> ProgramResult
[src]

Processes an InitializeMint instruction.

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

Processes an InitializeAccount 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
) -> ProgramResult
[src]

Processes a Transfer instruction.

pub fn process_approve(
    program_id: &Pubkey,
    accounts: &[AccountInfo],
    amount: u64
) -> 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_owner(
    program_id: &Pubkey,
    accounts: &[AccountInfo]
) -> ProgramResult
[src]

Processes a SetOwner instruction.

pub fn process_mint_to(
    program_id: &Pubkey,
    accounts: &[AccountInfo],
    amount: u64
) -> ProgramResult
[src]

Processes a MintTo instruction.

pub fn process_burn(
    program_id: &Pubkey,
    accounts: &[AccountInfo],
    amount: u64
) -> 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(
    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

pub fn unpack<T: IsInitialized>(
    input: &mut [u8]
) -> Result<&mut T, ProgramError>
[src]

Unpacks a token state from a bytes buffer while assuring that the state is initialized.

pub fn unpack_unchecked<T: IsInitialized>(
    input: &mut [u8]
) -> Result<&mut T, ProgramError>
[src]

Unpacks a token state from a bytes buffer without checking that the state is initialized.

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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

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.