pub struct MemoryGitCompatStore { /* private fields */ }Expand description
Process-local compatibility state adapter for tests and embedded callers.
Implementations§
Trait Implementations§
Source§impl Default for MemoryGitCompatStore
impl Default for MemoryGitCompatStore
Source§impl GitCompatStore for MemoryGitCompatStore
impl GitCompatStore for MemoryGitCompatStore
Source§type Error = MemoryGitCompatStoreError
type Error = MemoryGitCompatStoreError
Adapter error.
Source§async fn load(
&self,
workspace_id: WorkspaceId,
) -> Result<Option<GitCompatState>, Self::Error>
async fn load( &self, workspace_id: WorkspaceId, ) -> Result<Option<GitCompatState>, Self::Error>
Loads state for one repository/workspace identity.
Source§async fn compare_and_swap(
&self,
workspace_id: WorkspaceId,
expected_revision: u64,
replacement: GitCompatState,
) -> Result<bool, Self::Error>
async fn compare_and_swap( &self, workspace_id: WorkspaceId, expected_revision: u64, replacement: GitCompatState, ) -> Result<bool, Self::Error>
Atomically replaces one expected revision. Revision zero creates state.
Source§async fn compare_and_delete(
&self,
workspace_id: WorkspaceId,
expected_revision: u64,
) -> Result<bool, Self::Error>
async fn compare_and_delete( &self, workspace_id: WorkspaceId, expected_revision: u64, ) -> Result<bool, Self::Error>
Atomically removes one exact compatibility-state revision.
Auto Trait Implementations§
impl !Freeze for MemoryGitCompatStore
impl RefUnwindSafe for MemoryGitCompatStore
impl Send for MemoryGitCompatStore
impl Sync for MemoryGitCompatStore
impl Unpin for MemoryGitCompatStore
impl UnsafeUnpin for MemoryGitCompatStore
impl UnwindSafe for MemoryGitCompatStore
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