pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> {
    // Provided method
    fn exit(&self, _program_id: &Pubkey) -> Result<(), Error> { ... }
}
Expand description

The exit procedure for an account. Any cleanup or persistence to storage should be done here.

Provided Methods§

fn exit(&self, _program_id: &Pubkey) -> Result<(), Error>

program_id is the currently executing program.

Implementations on Foreign Types§

§

impl<'info> AccountsExit<'info> for AmountToUiAmount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Approve<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Approve<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for ApproveChecked<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Burn<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Burn<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for CloseAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for CloseAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Create<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for FreezeAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for FreezeAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for GetAccountDataSize<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeAccount3<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeAccount3<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeImmutableOwner<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeMint2<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeMint2<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeMint<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeMint<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for InitializeMintCloseAuthority<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for MintTo<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for MintTo<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Revoke<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Revoke<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for SetAuthority<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for SetAuthority<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for SyncNative<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for SyncNative<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for ThawAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for ThawAccount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Transfer<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for Transfer<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for TransferChecked<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for TransferChecked<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info> AccountsExit<'info> for UiAmountToAmount<'info>
where 'info: 'info,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

§

impl<'info, T> AccountsExit<'info> for Option<T>
where T: AccountsExit<'info>,

§

fn exit(&self, program_id: &Pubkey) -> Result<(), Error>

Implementors§

source§

impl<'info> AccountsExit<'info> for AttestationPermissionInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for AttestationPermissionSet<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for AttestationQueueAddMrEnclave<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for AttestationQueueInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionClose<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionSetConfig<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionSetEscrow<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionTrigger<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestClose<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestInitAndTrigger<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestSetConfig<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestTrigger<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRequestVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRoutineInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionRoutineVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for ServiceRequestQuoteVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for FunctionServiceVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VerifierHeartbeat<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VerifierInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VerifierQuoteRotate<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VerifierQuoteVerify<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for WalletFund<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for WalletInit<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for WalletWithdraw<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for PermissionSet<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfClose<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfLiteClose<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfLiteRequestRandomness<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfPoolRemove<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfPoolRequestRandomness<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfRequestRandomness<'info>
where 'info: 'info,

source§

impl<'info> AccountsExit<'info> for VrfSetCallback<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for AccountInfo<'info>

§

impl<'info> AccountsExit<'info> for Signer<'info>

§

impl<'info> AccountsExit<'info> for SystemAccount<'info>

§

impl<'info> AccountsExit<'info> for UncheckedAccount<'info>

§

impl<'info> AccountsExit<'info> for AdvanceNonceAccount<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for Allocate<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for AllocateWithSeed<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for Assign<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for AssignWithSeed<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for AuthorizeNonceAccount<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for CreateAccount<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for CreateAccountWithSeed<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for CreateNonceAccount<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for CreateNonceAccountWithSeed<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for Transfer<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for TransferWithSeed<'info>
where 'info: 'info,

§

impl<'info> AccountsExit<'info> for WithdrawNonceAccount<'info>
where 'info: 'info,

§

impl<'info, T> AccountsExit<'info> for Box<T>
where T: AccountsExit<'info>,

§

impl<'info, T> AccountsExit<'info> for Account<'info, T>

§

impl<'info, T> AccountsExit<'info> for AccountLoader<'info, T>
where T: ZeroCopy + Owner,

§

impl<'info, T> AccountsExit<'info> for Interface<'info, T>

§

impl<'info, T> AccountsExit<'info> for InterfaceAccount<'info, T>

§

impl<'info, T> AccountsExit<'info> for Program<'info, T>

§

impl<'info, T> AccountsExit<'info> for Sysvar<'info, T>
where T: Sysvar,