Trait clockwork_queue_program::objects::FeeAccount
source · [−]pub trait FeeAccount {
fn pubkey(&self) -> Pubkey;
fn init(&mut self, worker: Pubkey) -> Result<()>;
fn claim_balance(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>;
fn claim_withholding(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>;
fn escrow_balance(
&mut self,
amount: u64,
queue: &mut Account<'_, Queue>
) -> Result<()>;
fn escrow_withholding(
&mut self,
amount: u64,
queue: &mut Account<'_, Queue>
) -> Result<()>;
}
Expand description
Trait for reading and writing to a fee account.
Required Methods
sourcefn claim_balance(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>
fn claim_balance(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>
Claim the balance.
sourcefn claim_withholding(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>
fn claim_withholding(
&mut self,
amount: u64,
pay_to: &mut SystemAccount<'_>
) -> Result<()>
Claim the withholding.