Trait anchor_lang::AccountsExit
source · [−]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
fn exit(&self, program_id: &Pubkey) -> ProgramResult
fn exit(&self, program_id: &Pubkey) -> ProgramResult
program_id
is the currently executing program.