pub trait AsyncStoreRead: StoreBase {
// Required methods
fn get(&self, key: Self::Key) -> impl Future<Output = Option<Self::Value>>;
fn len(&self) -> impl Future<Output = usize>;
// Provided method
fn is_empty(&self) -> impl Future<Output = bool> { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".