SnapshotAccount

Trait SnapshotAccount 

Source
pub trait SnapshotAccount {
    // Required methods
    fn new(&mut self, id: u64) -> Result<()>;
    fn capture(
        &mut self,
        entry: &mut Account<'_, SnapshotEntry>,
        node: &Account<'_, Node>,
        stake: &Account<'_, TokenAccount>,
    ) -> Result<()>;
}
Expand description

SnapshotAccount

Required Methods§

Source

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

Source

fn capture( &mut self, entry: &mut Account<'_, SnapshotEntry>, node: &Account<'_, Node>, stake: &Account<'_, TokenAccount>, ) -> Result<()>

Implementations on Foreign Types§

Source§

impl SnapshotAccount for Account<'_, Snapshot>

Source§

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

Source§

fn capture( &mut self, entry: &mut Account<'_, SnapshotEntry>, node: &Account<'_, Node>, stake: &Account<'_, TokenAccount>, ) -> Result<()>

Implementors§