Struct spl_token::processor::Processor [−][src]
pub struct Processor {}
Expand description
Program state handler.
Implementations
impl Processor
[src]
impl Processor
[src]pub fn process_initialize_mint(
accounts: &[AccountInfo<'_>],
decimals: u8,
mint_authority: Pubkey,
freeze_authority: COption<Pubkey>
) -> ProgramResult
[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]
pub fn process_initialize_account(accounts: &[AccountInfo<'_>]) -> ProgramResult
[src]Processes an InitializeAccount instruction.
pub fn process_initialize_account2(
accounts: &[AccountInfo<'_>],
owner: Pubkey
) -> ProgramResult
[src]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,