Trait PoolAccount

Source
pub trait PoolAccount {
    // Required methods
    fn pubkey(&self) -> Pubkey;
    fn init(&mut self, name: String, size: usize) -> 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, name: String, size: usize) -> 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, name: String, size: usize) -> Result<()>

Source§

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

Source§

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

Implementors§