pub struct EventuallyConsistentStoreExtension<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> EventuallyConsistentStoreExtension<S>where
S: Storage,
impl<S> EventuallyConsistentStoreExtension<S>where
S: Storage,
Sourcepub fn new(store: S) -> Self
pub fn new(store: S) -> Self
Creates a new extension with a given data store, using the default repair interval.
Sourcepub fn with_repair_interval(self, dur: Duration) -> Self
pub fn with_repair_interval(self, dur: Duration) -> Self
Set a custom repair interval rather than the default (1 hour.)
Trait Implementations§
Source§impl<S> ClusterExtension for EventuallyConsistentStoreExtension<S>where
S: Storage,
impl<S> ClusterExtension for EventuallyConsistentStoreExtension<S>where
S: Storage,
type Output = EventuallyConsistentStore<S>
type Error = StoreError<<S as Storage>::Error>
fn init_extension<'life0, 'async_trait>(
self,
node: &'life0 DatacakeNode,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for EventuallyConsistentStoreExtension<S>where
S: Freeze,
impl<S> RefUnwindSafe for EventuallyConsistentStoreExtension<S>where
S: RefUnwindSafe,
impl<S> Send for EventuallyConsistentStoreExtension<S>
impl<S> Sync for EventuallyConsistentStoreExtension<S>
impl<S> Unpin for EventuallyConsistentStoreExtension<S>where
S: Unpin,
impl<S> UnwindSafe for EventuallyConsistentStoreExtension<S>where
S: UnwindSafe,
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.