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, 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 PermissionSet<'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,