1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Storage flags on leaf handles.
//!
//! A handle's exclusive access mode (from `at_mut_exclusive`, `set_exclusive`
//! or `delete_exclusive`) is a write policy: each successful write through it
//! is followed by a request for `ExclusiveLock`. Building, reading and
//! dropping a handle leave the host's flags alone, and writes through an
//! ordinary handle never remove them, so a lock taken once lasts for the rest
//! of the transaction unless [`clear_flags`](Flaggable::clear_flags) removes
//! it. See [`sys_result::flags`](crate::sys_result::flags).
use Sealed;
use crateStorageFlags;
use crateStorageKey;
/// A leaf handle whose key's storage flags can be read and changed.
///
/// Implemented by `Value`, `NNInt`, `Balance` and `Bytestring`. Sealed, like
/// [`StorageType`](super::StorageType).