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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".