pub struct EventuallyConsistentStore<S>where
S: Storage,{ /* private fields */ }Expand description
A fully managed eventually consistent state controller.
The EventuallyConsistentStore manages all RPC and state propagation for a given application, where the only setup required is the RPC based configuration and the required handler traits which wrap the application itself.
Datacake essentially acts as a frontend wrapper around a datastore to make is distributed.
Implementations§
Source§impl<S> EventuallyConsistentStore<S>where
S: Storage,
impl<S> EventuallyConsistentStore<S>where
S: Storage,
Sourcepub fn statistics(&self) -> &SystemStatistics
pub fn statistics(&self) -> &SystemStatistics
Gets the live cluster statistics.
Sourcepub fn handle(&self) -> ReplicatedStoreHandle<S>
pub fn handle(&self) -> ReplicatedStoreHandle<S>
Creates a new handle to the underlying storage system.
Changes applied to the handle are distributed across the cluster.
Sourcepub fn handle_with_keyspace(
&self,
keyspace: impl Into<String>,
) -> ReplicatorKeyspaceHandle<S>
pub fn handle_with_keyspace( &self, keyspace: impl Into<String>, ) -> ReplicatorKeyspaceHandle<S>
Creates a new handle to the underlying storage system with a preset keyspace.
Changes applied to the handle are distributed across the cluster.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for EventuallyConsistentStore<S>
impl<S> !RefUnwindSafe for EventuallyConsistentStore<S>
impl<S> Send for EventuallyConsistentStore<S>
impl<S> Sync for EventuallyConsistentStore<S>
impl<S> Unpin for EventuallyConsistentStore<S>
impl<S> !UnwindSafe for EventuallyConsistentStore<S>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.