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

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

Required Methods§

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

Implementations on Foreign Types§

§

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

§

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

Implementors§

§

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

§

impl<'info, T> AccountsClose<'info> for Account<'info, T>

§

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

§

impl<'info, T> AccountsClose<'info> for InterfaceAccount<'info, T>