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§
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<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".