pub struct ValkeyCoordinationStore { /* private fields */ }Implementations§
Source§impl ValkeyCoordinationStore
impl ValkeyCoordinationStore
pub fn connect(url: &str) -> Result<Self, CoordinationError>
pub fn connect_with_namespace( url: &str, namespace: impl Into<String>, ) -> Result<Self, CoordinationError>
Trait Implementations§
Source§impl Clone for ValkeyCoordinationStore
impl Clone for ValkeyCoordinationStore
Source§fn clone(&self) -> ValkeyCoordinationStore
fn clone(&self) -> ValkeyCoordinationStore
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 ValkeyCoordinationStore
impl CoordinationStore for ValkeyCoordinationStore
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ValkeyCoordinationStore
impl !RefUnwindSafe for ValkeyCoordinationStore
impl Send for ValkeyCoordinationStore
impl Sync for ValkeyCoordinationStore
impl Unpin for ValkeyCoordinationStore
impl UnsafeUnpin for ValkeyCoordinationStore
impl !UnwindSafe for ValkeyCoordinationStore
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