pub struct InMemoryCoordinationStore { /* private fields */ }Implementations§
Source§impl InMemoryCoordinationStore
impl InMemoryCoordinationStore
pub fn new() -> InMemoryCoordinationStore
Trait Implementations§
Source§impl Clone for InMemoryCoordinationStore
impl Clone for InMemoryCoordinationStore
Source§fn clone(&self) -> InMemoryCoordinationStore
fn clone(&self) -> InMemoryCoordinationStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CoordinationStore for InMemoryCoordinationStore
impl CoordinationStore for InMemoryCoordinationStore
fn claim_trigger<'life0, 'life1, 'async_trait>(
&'life0 self,
trigger_key: &'life1 str,
ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<Option<CoordinationClaim>, CoordinationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCoordinationStore: 'async_trait,
fn renew_claim<'life0, 'life1, 'async_trait>(
&'life0 self,
claim_id: &'life1 str,
ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<Option<CoordinationClaim>, CoordinationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCoordinationStore: 'async_trait,
fn release_claim<'life0, 'life1, 'async_trait>(
&'life0 self,
claim_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), CoordinationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCoordinationStore: 'async_trait,
fn scratchpad_get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
namespace: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CoordinationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
InMemoryCoordinationStore: 'async_trait,
fn scratchpad_set<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
namespace: &'life1 str,
key: &'life2 str,
value: Value,
ttl: Duration,
) -> Pin<Box<dyn Future<Output = Result<(), CoordinationError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
InMemoryCoordinationStore: 'async_trait,
Source§impl Default for InMemoryCoordinationStore
impl Default for InMemoryCoordinationStore
Source§fn default() -> InMemoryCoordinationStore
fn default() -> InMemoryCoordinationStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCoordinationStore
impl !RefUnwindSafe for InMemoryCoordinationStore
impl Send for InMemoryCoordinationStore
impl Sync for InMemoryCoordinationStore
impl Unpin for InMemoryCoordinationStore
impl UnsafeUnpin for InMemoryCoordinationStore
impl !UnwindSafe for InMemoryCoordinationStore
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