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§
source§impl<'de> Deserialize<'de> for Strategy
impl<'de> Deserialize<'de> for Strategy
source§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
source§impl PartialEq for Strategy
impl PartialEq for Strategy
impl Copy for Strategy
impl Eq for Strategy
impl StructuralPartialEq for Strategy
Auto Trait Implementations§
impl Freeze for Strategy
impl RefUnwindSafe for Strategy
impl Send for Strategy
impl Sync for Strategy
impl Unpin for Strategy
impl UnwindSafe for Strategy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more