pub trait SharedStorageView {
type Storage<T>;
type ReadGuard<'a, T>: Deref<Target = SharedValue<T>>
where Self: 'a,
T: 'a;
type WriteGuard<'a, T>: DerefMut<Target = SharedValue<T>>
where Self: 'a,
T: 'a;
}Expand description
Guard types used by runtime-erased state views.
This is the part needed by StorageStateRef and
StorageStateMut. Full shared containers also
implement SharedStorage, which adds construction and borrow methods.
Required Associated Types§
Sourcetype Storage<T>
type Storage<T>
Concrete cell or lock type containing SharedValue<T>.
Sourcetype ReadGuard<'a, T>: Deref<Target = SharedValue<T>>
where
Self: 'a,
T: 'a
type ReadGuard<'a, T>: Deref<Target = SharedValue<T>> where Self: 'a, T: 'a
Guard returned by read access.
Sourcetype WriteGuard<'a, T>: DerefMut<Target = SharedValue<T>>
where
Self: 'a,
T: 'a
type WriteGuard<'a, T>: DerefMut<Target = SharedValue<T>> where Self: 'a, T: 'a
Guard returned by write access.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".