pub struct RemotePeer { /* private fields */ }Expand description
A fluent client backed by a remote peer server over gRPC.
Implementations§
Source§impl RemotePeer
impl RemotePeer
Trait Implementations§
Source§impl Peer for RemotePeer
impl Peer for RemotePeer
Source§fn db<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Db, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn db<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Db, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The current database value. Read more
Source§fn transact<'life0, 'async_trait>(
&'life0 self,
tx: TxData,
) -> Pin<Box<dyn Future<Output = Result<TxReport, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn transact<'life0, 'async_trait>(
&'life0 self,
tx: TxData,
) -> Pin<Box<dyn Future<Output = Result<TxReport, ClientError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submits a transaction and waits until it is applied, returning a
report whose
db_after observes it. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for RemotePeer
impl !UnwindSafe for RemotePeer
impl Freeze for RemotePeer
impl Send for RemotePeer
impl Sync for RemotePeer
impl Unpin for RemotePeer
impl UnsafeUnpin for RemotePeer
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> 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