Struct spl_token::processor::Processor [−][src]
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]
accounts: &[AccountInfo<'_>],
decimals: u8,
mint_authority: Pubkey,
freeze_authority: COption<Pubkey>
) -> ProgramResult
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]
accounts: &[AccountInfo<'_>],
owner: Pubkey
) -> ProgramResult
Processes an InitializeAccount2 instruction.
pub fn process_initialize_multisig(
accounts: &[AccountInfo<'_>],
m: u8
) -> ProgramResult
[src]
accounts: &[AccountInfo<'_>],
m: u8
) -> ProgramResult
Processes a InitializeMultisig instruction.
pub fn process_transfer(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
Processes a Transfer instruction.
pub fn process_approve(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
Processes an Approve instruction.
pub fn process_revoke(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>]
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>]
) -> ProgramResult
Processes an Revoke instruction.
pub fn process_set_authority(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
authority_type: AuthorityType,
new_authority: COption<Pubkey>
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
authority_type: AuthorityType,
new_authority: COption<Pubkey>
) -> ProgramResult
Processes a SetAuthority instruction.
pub fn process_mint_to(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
Processes a MintTo instruction.
pub fn process_burn(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
amount: u64,
expected_decimals: Option<u8>
) -> ProgramResult
Processes a Burn instruction.
pub fn process_close_account(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>]
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>]
) -> ProgramResult
Processes a CloseAccount instruction.
pub fn process_toggle_freeze_account(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
freeze: bool
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
freeze: bool
) -> ProgramResult
Processes a FreezeAccount or a ThawAccount instruction.
pub fn process(
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
input: &[u8]
) -> ProgramResult
[src]
program_id: &Pubkey,
accounts: &[AccountInfo<'_>],
input: &[u8]
) -> ProgramResult
Processes an Instruction.
pub fn validate_owner(
program_id: &Pubkey,
expected_owner: &Pubkey,
owner_account_info: &AccountInfo<'_>,
signers: &[AccountInfo<'_>]
) -> ProgramResult
[src]
program_id: &Pubkey,
expected_owner: &Pubkey,
owner_account_info: &AccountInfo<'_>,
signers: &[AccountInfo<'_>]
) -> ProgramResult
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,