pub struct InMemoryOperationStore { /* private fields */ }Expand description
Default in-memory operation store.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryOperationStore
impl Default for InMemoryOperationStore
Source§impl OperationStore for InMemoryOperationStore
impl OperationStore for InMemoryOperationStore
Source§fn admit(&self, operation_id: OperationId)
fn admit(&self, operation_id: OperationId)
Record that we’re starting to process this operation.
Source§fn lookup(&self, operation_id: OperationId) -> OperationState
fn lookup(&self, operation_id: OperationId) -> OperationState
Check the state of an operation.
Source§fn get_sealed(&self, operation_id: OperationId) -> Option<SealedResponse>
fn get_sealed(&self, operation_id: OperationId) -> Option<SealedResponse>
Retrieve a sealed response.
Source§fn seal(
&self,
operation_id: OperationId,
method_id: MethodId,
response: &PostcardPayload,
)
fn seal( &self, operation_id: OperationId, method_id: MethodId, response: &PostcardPayload, )
Store the sealed response for an operation.
response is the
postcard-encoded payload without schemas; method_id is needed
at replay time to look up the response shape from the running
code.Source§fn remove(&self, operation_id: OperationId)
fn remove(&self, operation_id: OperationId)
Remove an admitted (but not sealed) operation, e.g. after handler failure.
Auto Trait Implementations§
impl !Freeze for InMemoryOperationStore
impl !RefUnwindSafe for InMemoryOperationStore
impl Send for InMemoryOperationStore
impl Sync for InMemoryOperationStore
impl Unpin for InMemoryOperationStore
impl UnsafeUnpin for InMemoryOperationStore
impl UnwindSafe for InMemoryOperationStore
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