Trait clockwork_client::queue::objects::QueueAccount
source · [−]pub trait QueueAccount {
fn pubkey(&self) -> Pubkey;
fn init(
&mut self,
authority: Pubkey,
id: String,
kickoff_instruction: InstructionData,
trigger: Trigger
) -> Result<(), Error>;
fn crank(
&mut self,
account_infos: &[AccountInfo<'_>],
bump: u8,
worker: &Signer<'_>
) -> Result<(), Error>;
fn realloc(&mut self) -> Result<(), Error>;
fn update(&mut self, settings: QueueSettings) -> Result<(), Error>;
}Expand description
Trait for reading and writing to a queue account.
Required Methods
sourcefn init(
&mut self,
authority: Pubkey,
id: String,
kickoff_instruction: InstructionData,
trigger: Trigger
) -> Result<(), Error>
fn init(
&mut self,
authority: Pubkey,
id: String,
kickoff_instruction: InstructionData,
trigger: Trigger
) -> Result<(), Error>
Initialize the account to hold queue object.
sourcefn crank(
&mut self,
account_infos: &[AccountInfo<'_>],
bump: u8,
worker: &Signer<'_>
) -> Result<(), Error>
fn crank(
&mut self,
account_infos: &[AccountInfo<'_>],
bump: u8,
worker: &Signer<'_>
) -> Result<(), Error>
Crank the queue. Call out to the target program and parse the response for a next instruction.