pub struct MemoryWorkspaceLineageStore { /* private fields */ }Expand description
Process-local lineage adapter for tests and embedded callers.
Implementations§
Trait Implementations§
Source§impl WorkspaceLineageStore for MemoryWorkspaceLineageStore
impl WorkspaceLineageStore for MemoryWorkspaceLineageStore
Source§type Error = MemoryWorkspaceLineageStoreError
type Error = MemoryWorkspaceLineageStoreError
Adapter error.
Source§async fn load(
&self,
workspace_id: WorkspaceId,
) -> Result<Option<WorkspaceLineageRecord>, Self::Error>
async fn load( &self, workspace_id: WorkspaceId, ) -> Result<Option<WorkspaceLineageRecord>, Self::Error>
Loads the record for one workspace, if registered.
Source§async fn compare_and_swap(
&self,
workspace_id: WorkspaceId,
expected_revision: u64,
replacement: WorkspaceLineageRecord,
) -> Result<bool, Self::Error>
async fn compare_and_swap( &self, workspace_id: WorkspaceId, expected_revision: u64, replacement: WorkspaceLineageRecord, ) -> Result<bool, Self::Error>
Atomically replaces
expected_revision; zero creates a record.Auto Trait Implementations§
impl !Freeze for MemoryWorkspaceLineageStore
impl RefUnwindSafe for MemoryWorkspaceLineageStore
impl Send for MemoryWorkspaceLineageStore
impl Sync for MemoryWorkspaceLineageStore
impl Unpin for MemoryWorkspaceLineageStore
impl UnsafeUnpin for MemoryWorkspaceLineageStore
impl UnwindSafe for MemoryWorkspaceLineageStore
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> 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