pub struct StoreMut<S, Extra = ()> { /* private fields */ }Implementations§
Source§impl<S: RainbowStoreMut, Extra: 'static + Send + Sync + Clone> StoreMut<S, Extra>
impl<S: RainbowStoreMut, Extra: 'static + Send + Sync + Clone> StoreMut<S, Extra>
pub async fn exists<K: Send + Sync + AsRef<str>>(&self, key: K) -> Result<bool>
pub async fn create<T: Object<Extra>>( &self, point: Point<T>, ) -> Result<StoreRef<S, impl 'static + Send + Sync + AsRef<str>, T, Extra>>
pub async fn update<T: Object<Extra>, K: Send + Sync + AsRef<str>>( &self, key: K, point: Point<T>, ) -> Result<StoreRef<S, K, T, Extra>>
pub async fn init<T: Object<Extra>, K: Send + Sync + AsRef<str>>( &self, key: K, point: Point<T>, ) -> Result<StoreRef<S, K, T, Extra>>
pub async fn load<T: Object<Extra>, K: Send + Sync + AsRef<str>>( &self, key: K, ) -> Result<StoreRef<S, K, T, Extra>>
pub async fn load_or_init<T: Object<Extra> + Default + Clone, K: Send + Sync + AsRef<str>>( &self, key: K, ) -> Result<StoreRef<S, K, T, Extra>>
pub async fn reference<T: Object<Extra>, K: Send + Sync + AsRef<str>>( &self, key: K, point: Point<T>, ) -> Result<StoreRef<S, K, T, Extra>>
Trait Implementations§
Auto Trait Implementations§
impl<S, Extra> Freeze for StoreMut<S, Extra>
impl<S, Extra> RefUnwindSafe for StoreMut<S, Extra>where
S: RefUnwindSafe,
Extra: RefUnwindSafe,
impl<S, Extra> Send for StoreMut<S, Extra>
impl<S, Extra> Sync for StoreMut<S, Extra>
impl<S, Extra> Unpin for StoreMut<S, Extra>
impl<S, Extra> UnsafeUnpin for StoreMut<S, Extra>where
S: UnsafeUnpin,
Extra: UnsafeUnpin,
impl<S, Extra> UnwindSafe for StoreMut<S, Extra>where
S: UnwindSafe,
Extra: UnwindSafe,
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more