pub trait PoolAccount {
    // Required methods
    fn pubkey(&self) -> Pubkey;
    fn init(&mut self, id: u64) -> Result<()>;
    fn rotate(&mut self, worker: Pubkey) -> Result<()>;
    fn update(&mut self, settings: &PoolSettings) -> Result<()>;
}
Expand description

PoolAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

fn init(&mut self, id: u64) -> Result<()>

source

fn rotate(&mut self, worker: Pubkey) -> Result<()>

source

fn update(&mut self, settings: &PoolSettings) -> Result<()>

Implementations on Foreign Types§

source§

impl PoolAccount for Account<'_, Pool>

source§

fn pubkey(&self) -> Pubkey

source§

fn init(&mut self, id: u64) -> Result<()>

source§

fn rotate(&mut self, worker: Pubkey) -> Result<()>

source§

fn update(&mut self, settings: &PoolSettings) -> Result<()>

Implementors§