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

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

Provided Methods§

source

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

program_id is the currently executing program.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<'info, T: AccountSerialize + AccountDeserialize + Owner + Clone> AccountsExit<'info> for Account<'info, T>

source§

impl<'info, T: AccountSerialize + AccountDeserialize + Owners + Clone> AccountsExit<'info> for InterfaceAccount<'info, T>

source§

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