Enum sp_storage::StateVersion
source · [−]pub enum StateVersion {
V0,
V1,
}
Expand description
Different possible state version.
V0 and V1 uses a same trie implementation, but V1 will write external value node in the trie for
value with size at least TRIE_VALUE_NODE_THRESHOLD
.
Variants
V0
Old state version, no value nodes.
V1
New state version can use value nodes.
Implementations
If defined, values in state of size bigger or equal to this threshold will use a separate trie node. Otherwhise, value will be inlined in branch or leaf node.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for StateVersion
impl Send for StateVersion
impl Sync for StateVersion
impl Unpin for StateVersion
impl UnwindSafe for StateVersion
Blanket Implementations
Mutably borrows from an owned value. Read more