pub trait TokenInstruction<'a> {
// Required method
fn emit(
&self,
multisig_signers: &[&'a AccountView<'a>],
sink: &mut impl TokenSink<'a>,
) -> ProgramResult;
}Expand description
An SPL Token / Token-2022 instruction builder: something that can encode
itself into a TokenSink.
multisig_signers are the signer accounts of a multisig authority
(at most MAX_TOKEN_MULTISIG_SIGNERS); builders without an authority
ignore the slice.
Required Methods§
fn emit( &self, multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".