pub struct MemoryOperationWindowStore { /* private fields */ }Expand description
Process-local adapter used by tests and embedded single-process callers.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryOperationWindowStore
impl Clone for MemoryOperationWindowStore
Source§impl Default for MemoryOperationWindowStore
impl Default for MemoryOperationWindowStore
Source§impl OperationWindowStore for MemoryOperationWindowStore
impl OperationWindowStore for MemoryOperationWindowStore
Source§type Error = MemoryOperationWindowStoreError
type Error = MemoryOperationWindowStoreError
Adapter error.
Source§async fn load(
&self,
workspace_id: WorkspaceId,
) -> Result<Option<OperationWindowSnapshot>, Self::Error>
async fn load( &self, workspace_id: WorkspaceId, ) -> Result<Option<OperationWindowSnapshot>, Self::Error>
Loads current state, returning
None before first use.Source§async fn compare_and_swap(
&self,
workspace_id: WorkspaceId,
expected_revision: u64,
replacement: OperationWindowSnapshot,
) -> Result<bool, Self::Error>
async fn compare_and_swap( &self, workspace_id: WorkspaceId, expected_revision: u64, replacement: OperationWindowSnapshot, ) -> Result<bool, Self::Error>
Replaces
expected_revision atomically. Revision zero creates state.Auto Trait Implementations§
impl Freeze for MemoryOperationWindowStore
impl RefUnwindSafe for MemoryOperationWindowStore
impl Send for MemoryOperationWindowStore
impl Sync for MemoryOperationWindowStore
impl Unpin for MemoryOperationWindowStore
impl UnsafeUnpin for MemoryOperationWindowStore
impl UnwindSafe for MemoryOperationWindowStore
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request