pub trait RainbowStoreMut: RainbowStore {
// Required methods
fn update_ref(
&self,
key: &str,
old: Option<OptionalHash>,
hash: Hash,
) -> impl RainbowFuture<T = ()>;
fn fetch_ref(&self, key: &str) -> impl RainbowFuture<T = OptionalHash>;
fn ref_exists(&self, key: &str) -> impl RainbowFuture<T = bool>;
// Provided methods
fn create_ref(
&self,
hash: Hash,
) -> impl RainbowFuture<T = impl 'static + Send + Sync + AsRef<str>> { ... }
fn store_ref_raw<T: Object<Extra>, K: Send + Sync + AsRef<str>, Extra: 'static + Send + Sync + Clone>(
&self,
key: K,
point: Point<T>,
extra: Extra,
) -> StoreRef<Self, K, T, Extra> { ... }
}Required Methods§
fn update_ref( &self, key: &str, old: Option<OptionalHash>, hash: Hash, ) -> impl RainbowFuture<T = ()>
fn fetch_ref(&self, key: &str) -> impl RainbowFuture<T = OptionalHash>
fn ref_exists(&self, key: &str) -> impl RainbowFuture<T = bool>
Provided Methods§
fn create_ref( &self, hash: Hash, ) -> impl RainbowFuture<T = impl 'static + Send + Sync + AsRef<str>>
fn store_ref_raw<T: Object<Extra>, K: Send + Sync + AsRef<str>, Extra: 'static + Send + Sync + Clone>( &self, key: K, point: Point<T>, extra: Extra, ) -> StoreRef<Self, K, T, Extra>
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.