pub trait TransientStorage {
type Value: TransientStorageValue + Asm;
const STORAGE_KEY: [u8; 32];
const STORAGE_SLOT: i32;
// Provided methods
fn get() -> Self::Value { ... }
fn set(value: Self::Value) { ... }
}
Expand description
Transient storage trait. Currently not for public use
Required Associated Constants§
const STORAGE_KEY: [u8; 32]
const STORAGE_SLOT: i32
Required Associated Types§
type Value: TransientStorageValue + Asm
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.