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,
response: &PostcardPayload,
root_type: &TypeRef,
registry: &SchemaRegistry,
)
fn seal( &self, operation_id: OperationId, response: &PostcardPayload, root_type: &TypeRef, registry: &SchemaRegistry, )
Store the sealed response for an operation. Read more
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.
Source§fn schema_source(&self) -> &dyn SchemaSource
fn schema_source(&self) -> &dyn SchemaSource
Access the store’s schema source for looking up schemas by hash.
Source§impl SchemaSource for InMemoryOperationStore
impl SchemaSource for InMemoryOperationStore
fn get_schema(&self, id: SchemaHash) -> Option<Schema>
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