Trait brush_lang::traits::Flush
source · [−]pub trait Flush: SpreadLayout + InkStorage {
fn flush(&self) { ... }
fn load(&mut self) { ... }
}
Expand description
This trait is automatically implemented for storage.
Provided Methods
Method flushes the current state of Self
into storage.
ink! recursively calculate a key of each field.
So if you want to flush the correct state of the contract,
you have to this method on storage struct.