pub trait ProcessAction<'info>: Sized {
// Required methods
fn process(
ctx: &ActionContext<'_, '_, '_, 'info, Self>,
amount_in: u64,
minimum_amount_out: u64,
) -> Result<()>;
fn input_account(&self) -> &Account<'info, TokenAccount>;
fn output_account(&self) -> &Account<'info, TokenAccount>;
}Required Methods§
Sourcefn process(
ctx: &ActionContext<'_, '_, '_, 'info, Self>,
amount_in: u64,
minimum_amount_out: u64,
) -> Result<()>
fn process( ctx: &ActionContext<'_, '_, '_, 'info, Self>, amount_in: u64, minimum_amount_out: u64, ) -> Result<()>
Processes the action.
fn input_account(&self) -> &Account<'info, TokenAccount>
fn output_account(&self) -> &Account<'info, TokenAccount>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.