Skip to main content

ThreadAccount

Trait ThreadAccount 

Source
pub trait ThreadAccount {
    // Required methods
    fn pubkey(&self) -> Pubkey;
    fn realloc(&mut self) -> Result<()>;
}
Expand description

Trait for reading and writing to a thread account.

Required Methods§

Source

fn pubkey(&self) -> Pubkey

Get the pubkey of the thread account.

Source

fn realloc(&mut self) -> Result<()>

Allocate more memory for the account.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ThreadAccount for Account<'_, Thread>

Source§

fn pubkey(&self) -> Pubkey

Source§

fn realloc(&mut self) -> Result<()>

Implementors§