Trait for reading and writing to a thread account.
| 61 | |
| 62 | /// Trait for reading and writing to a thread account. |
| 63 | pub 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 | |
| 71 | impl ThreadAccount for Account<'_, Thread> { |
| 72 | fn pubkey(&self) -> Pubkey { |
nothing calls this directly
no outgoing calls
no test coverage detected