pub(crate) trait DatastoreExt<'a>: Copy {
// Required methods
fn reader<T>(self) -> Reader<'a, T>
where T: Storable + 'static;
fn exclusive_reader<T>(self) -> ExclusiveReader<'a, T>
where T: Storable + 'static;
fn writer<T>(self) -> Writer<'a, T>
where T: Storable + 'static;
}Required Methods§
Sourcefn exclusive_reader<T>(self) -> ExclusiveReader<'a, T>where
T: Storable + 'static,
fn exclusive_reader<T>(self) -> ExclusiveReader<'a, T>where
T: Storable + 'static,
Returns the ExclusiveReader for a specific slot.
Exclusivity of the reader is not guaranteed by this method and must be ensured via other means (e.g.
crate::execute::validate_actors).
§Panics
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.