pub struct InMemoryMobSpecStore { /* private fields */ }Expand description
In-memory spec store with revision CAS semantics.
Implementations§
Trait Implementations§
Source§impl Debug for InMemoryMobSpecStore
impl Debug for InMemoryMobSpecStore
Source§impl Default for InMemoryMobSpecStore
impl Default for InMemoryMobSpecStore
Source§fn default() -> InMemoryMobSpecStore
fn default() -> InMemoryMobSpecStore
Returns the “default value” for a type. Read more
Source§impl MobSpecStore for InMemoryMobSpecStore
impl MobSpecStore for InMemoryMobSpecStore
Source§fn put_spec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mob_id: &'life1 MobId,
definition: &'life2 MobDefinition,
revision: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<u64, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_spec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mob_id: &'life1 MobId,
definition: &'life2 MobDefinition,
revision: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<u64, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Put a spec. Returns new revision.
fn get_spec<'life0, 'life1, 'async_trait>(
&'life0 self,
mob_id: &'life1 MobId,
) -> Pin<Box<dyn Future<Output = Result<Option<(MobDefinition, u64)>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_specs<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MobId>, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_spec<'life0, 'life1, 'async_trait>(
&'life0 self,
mob_id: &'life1 MobId,
revision: Option<u64>,
) -> Pin<Box<dyn Future<Output = Result<bool, MobStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for InMemoryMobSpecStore
impl !RefUnwindSafe for InMemoryMobSpecStore
impl Send for InMemoryMobSpecStore
impl Sync for InMemoryMobSpecStore
impl Unpin for InMemoryMobSpecStore
impl UnsafeUnpin for InMemoryMobSpecStore
impl !UnwindSafe for InMemoryMobSpecStore
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