pub trait AccountsExit<'info>: ToAccountMetas + ToAccountInfos<'info> {
    fn exit(&self, program_id: &Pubkey) -> ProgramResult;
}
Expand description

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

Required methods

program_id is the currently executing program.

Implementations on Foreign Types

Implementors