Enum cw_storage_plus::Strategy
source · pub enum Strategy {
EveryBlock,
Never,
Selected,
}
Variants
EveryBlock
Never
Selected
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
sourceimpl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
sourcefn 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
impl Copy for Strategy
impl Eq for Strategy
impl StructuralEq for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more