Struct specs::storage::SharedGetOnly
source · pub struct SharedGetOnly<'a, T, S>(/* private fields */);
Expand description
This type provides a way to ensure only shared_get_mut
and get
can
be called for the lifetime 'a
and that no references previously
obtained from the storage exist when it is created. While internally
this is a shared reference, constructing it requires an exclusive borrow
for the lifetime 'a
.
This is useful for implementation of Join
and
ParJoin
for &mut RestrictedStorage
.