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

PoolAccount

Required Methods§

source

fn pubkey(&self) -> Pubkey

source

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

source

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

source

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

Implementations on Foreign Types§

source§

impl PoolAccount for Account<'_, Pool>

source§

fn pubkey(&self) -> Pubkey

source§

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

source§

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

source§

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

Implementors§