Enum cw_storage_plus::Strategy [−][src]
pub enum Strategy {
EveryBlock,
Never,
Selected,
}
Variants
Only writes for linked blocks - does a few more reads to save some writes. Probably uses more gas, but less total disk usage.
Note that you need a trusted source (eg. own contract) to set/remove checkpoints. Useful when the checkpoint setting happens in the same contract as the snapshotting.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Strategy
impl UnwindSafe for Strategy
Blanket Implementations
Mutably borrows from an owned value. Read more