pub struct InMemoryRealmProfileStore { /* private fields */ }Expand description
In-memory realm profile store with CAS semantics.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryRealmProfileStore
impl Debug for InMemoryRealmProfileStore
Source§impl Default for InMemoryRealmProfileStore
impl Default for InMemoryRealmProfileStore
Source§fn default() -> InMemoryRealmProfileStore
fn default() -> InMemoryRealmProfileStore
Returns the “default value” for a type. Read more
Source§impl RealmProfileStore for InMemoryRealmProfileStore
impl RealmProfileStore for InMemoryRealmProfileStore
Source§fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
profile: &'life2 Profile,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
profile: &'life2 Profile,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a new realm profile. Returns error if the name already exists.
Source§fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredRealmProfile>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredRealmProfile>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get a realm profile by name.
Source§fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredRealmProfile>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<StoredRealmProfile>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all realm profiles.
Source§fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
profile: &'life2 Profile,
expected_revision: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
profile: &'life2 Profile,
expected_revision: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Update a realm profile.
expected_revision must match the current revision.Source§fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
expected_revision: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
expected_revision: u64,
) -> Pin<Box<dyn Future<Output = Result<StoredRealmProfile, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a realm profile.
expected_revision must match the current revision.
Returns the deleted profile on success.Auto Trait Implementations§
impl Freeze for InMemoryRealmProfileStore
impl !RefUnwindSafe for InMemoryRealmProfileStore
impl Send for InMemoryRealmProfileStore
impl Sync for InMemoryRealmProfileStore
impl Unpin for InMemoryRealmProfileStore
impl UnsafeUnpin for InMemoryRealmProfileStore
impl !UnwindSafe for InMemoryRealmProfileStore
Blanket Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more