Trait anchor_lang::AccountsClose

source ·
pub trait AccountsClose<'info>: ToAccountInfos<'info> {
    // Required method
    fn close(&self, sol_destination: AccountInfo<'info>) -> Result<()>;
}
Expand description

The close procedure to initiate garabage collection of an account, allowing one to retrieve the rent exemption.

Required Methods§

source

fn close(&self, sol_destination: AccountInfo<'info>) -> Result<()>

Implementations on Foreign Types§

source§

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

source§

fn close(&self, sol_destination: AccountInfo<'info>) -> Result<()>

source§

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

source§

fn close(&self, sol_destination: AccountInfo<'info>) -> Result<()>

Implementors§

source§

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

source§

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

source§

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