pub trait QueueAccount {
    fn pubkey(&self) -> Pubkey;
    fn init(
        &mut self,
        authority: Pubkey,
        id: String,
        kickoff_instruction: InstructionData,
        trigger: Trigger
    ) -> Result<()>; fn crank(
        &mut self,
        account_infos: &[AccountInfo<'_>],
        bump: u8,
        worker: &Signer<'_>
    ) -> Result<()>; fn realloc(&mut self) -> Result<()>; fn update(&mut self, settings: QueueSettings) -> Result<()>; }
Expand description

Trait for reading and writing to a queue account.

Required Methods

Get the pubkey of the queue account.

Initialize the account to hold queue object.

Crank the queue. Call out to the target program and parse the response for a next instruction.

Reallocate the memory allocation for the account.

Implementations on Foreign Types

Implementors