pub struct SyncNative<'a> {
pub account: &'a AccountView<'a>,
}Expand description
Builder for SPL Token SyncNative (instruction index 17).
Fields§
§account: &'a AccountView<'a>Implementations§
Source§impl SyncNative<'_>
impl SyncNative<'_>
pub fn invoke(&self) -> ProgramResult
Source§impl SyncNative<'_>
impl SyncNative<'_>
Sourcepub fn invoke_on(
&self,
program: TokenProgram,
multisig_signers: &[&AccountView<'_>],
signers: &[Signer<'_, '_>],
) -> ProgramResult
pub fn invoke_on( &self, program: TokenProgram, multisig_signers: &[&AccountView<'_>], signers: &[Signer<'_, '_>], ) -> ProgramResult
Send this instruction to an explicit token program.
multisig_signers is empty for a single-key authority; when
signers is empty the authority (or every multisig signer)
must have signed the transaction directly.
Sourcepub fn invoke_for_owner(
&self,
multisig_signers: &[&AccountView<'_>],
signers: &[Signer<'_, '_>],
) -> ProgramResult
pub fn invoke_for_owner( &self, multisig_signers: &[&AccountView<'_>], signers: &[Signer<'_, '_>], ) -> ProgramResult
Send this instruction to whichever token program owns
account
(one 32-byte compare). Any other owner is refused with
IncorrectProgramId before the CPI.
Trait Implementations§
Source§impl<'a, 'x: 'a> TokenInstruction<'a> for SyncNative<'x>
impl<'a, 'x: 'a> TokenInstruction<'a> for SyncNative<'x>
fn emit( &self, multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> ProgramResult
Auto Trait Implementations§
impl<'a> !Send for SyncNative<'a>
impl<'a> !Sync for SyncNative<'a>
impl<'a> Freeze for SyncNative<'a>
impl<'a> RefUnwindSafe for SyncNative<'a>
impl<'a> Unpin for SyncNative<'a>
impl<'a> UnsafeUnpin for SyncNative<'a>
impl<'a> UnwindSafe for SyncNative<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more