pub trait ThreadAccount {
    fn pubkey(&self) -> Pubkey;
    fn init(
        &mut self,
        authority: Pubkey,
        id: String,
        kickoff_instruction: InstructionData,
        trigger: Trigger
    ) -> Result<()>; fn exec(
        &mut self,
        account_infos: &[AccountInfo<'_>],
        bump: u8,
        fee: &mut Account<'_, Fee>,
        penalty: &mut Account<'_, Penalty>,
        pool: &Account<'_, Pool>,
        signatory: &mut Signer<'_>,
        worker: &Account<'_, Worker>
    ) -> Result<()>; fn kickoff(&mut self, remaining_accounts: &[AccountInfo<'_>]) -> Result<()>; fn realloc(&mut self) -> Result<()>; fn update(&mut self, settings: ThreadSettings) -> Result<()>; }
Expand description

Trait for reading and writing to a thread account.

Required Methods§

Get the pubkey of the thread account.

Initialize the account to hold thread object.

Execute the next instruction on the thread.

Reallocate the memory allocation for the account.

Implementations on Foreign Types§

Implementors§