MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / ThreadAccount

Interface ThreadAccount

programs/thread/src/state/thread.rs:63–69  ·  view source on GitHub ↗

Trait for reading and writing to a thread account.

Source from the content-addressed store, hash-verified

61
62/// Trait for reading and writing to a thread account.
63pub trait ThreadAccount {
64 /// Get the pubkey of the thread account.
65 fn pubkey(&self) -> Pubkey;
66
67 /// Allocate more memory for the account.
68 fn realloc(&mut self) -> Result<()>;
69}
70
71impl ThreadAccount for Account<'_, Thread> {
72 fn pubkey(&self) -> Pubkey {

Callers

nothing calls this directly

Implementers 1

thread.rsprograms/thread/src/state/thread.rs

Calls

no outgoing calls

Tested by

no test coverage detected