QueueAccount

Trait QueueAccount 

Source
pub trait QueueAccount {
    // Required methods
    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<()>;
}
Expand description

QueueAccount

Required Methods§

Source

fn init( &mut self, authority: Pubkey, id: String, kickoff_instruction: InstructionData, trigger: Trigger, ) -> Result<()>

Source

fn crank( &mut self, account_infos: &[AccountInfo<'_>], bump: u8, worker: &Signer<'_>, ) -> Result<()>

Source

fn realloc(&mut self) -> Result<()>

Implementations on Foreign Types§

Source§

impl QueueAccount for Account<'_, Queue>

Source§

fn init( &mut self, authority: Pubkey, id: String, kickoff_instruction: InstructionData, trigger: Trigger, ) -> Result<()>

Source§

fn crank( &mut self, account_infos: &[AccountInfo<'_>], bump: u8, worker: &Signer<'_>, ) -> Result<()>

Source§

fn realloc(&mut self) -> Result<()>

Implementors§