pub trait RotatorAccount {
// Required methods
fn init(&mut self) -> Result<()>;
fn is_valid_entry(
&mut self,
entry: &Account<'_, SnapshotEntry>,
snapshot: &Account<'_, Snapshot>,
) -> Result<bool>;
fn hash_nonce(&mut self) -> Result<()>;
fn add_pool(&mut self, pool: Pubkey) -> Result<()>;
}Expand description
RotatorAccount
Required Methods§
fn init(&mut self) -> Result<()>
fn is_valid_entry( &mut self, entry: &Account<'_, SnapshotEntry>, snapshot: &Account<'_, Snapshot>, ) -> Result<bool>
fn hash_nonce(&mut self) -> Result<()>
fn add_pool(&mut self, pool: Pubkey) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".