pub struct LocalTransactionService { /* private fields */ }Expand description
Local-mode TransactionService impl.
Wraps the shared GrpcLocalService state so the dedup store and
repository handle are available to every RPC.
Implementations§
Source§impl LocalTransactionService
impl LocalTransactionService
pub fn new(inner: GrpcLocalService) -> Self
Trait Implementations§
Source§impl Clone for LocalTransactionService
impl Clone for LocalTransactionService
Source§fn clone(&self) -> LocalTransactionService
fn clone(&self) -> LocalTransactionService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TransactionService for LocalTransactionService
impl TransactionService for LocalTransactionService
fn begin_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<BeginTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BeginTransactionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn commit_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<CommitTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CommitTransactionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abort_transaction<'life0, 'async_trait>(
&'life0 self,
request: Request<AbortTransactionRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AbortTransactionResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_transaction_status<'life0, 'async_trait>(
&'life0 self,
request: Request<GetTransactionStatusRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TransactionStatus>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalTransactionService
impl !RefUnwindSafe for LocalTransactionService
impl Send for LocalTransactionService
impl Sync for LocalTransactionService
impl Unpin for LocalTransactionService
impl UnsafeUnpin for LocalTransactionService
impl !UnwindSafe for LocalTransactionService
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
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