Trait clockwork_sdk::queue_program::accounts::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>;
}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.