pub struct DbClient { /* private fields */ }Expand description
DbClient handle
Implementations§
Trait Implementations§
Source§impl Client for DbClient
impl Client for DbClient
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Starts a TCP connection with an rldb node
Source§fn ping<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ping<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<PingResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Ping command interface
Source§fn get<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
) -> Pin<Box<dyn Future<Output = Result<GetResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
) -> Pin<Box<dyn Future<Output = Result<GetResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get command interface Read more
Source§fn replication_get<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
) -> Pin<Box<dyn Future<Output = Result<ReplicationGetResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replication_get<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
) -> Pin<Box<dyn Future<Output = Result<ReplicationGetResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ReplicationGet command interface Read more
Source§fn put<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
value: Value,
context: Option<String>,
replication: bool,
) -> Pin<Box<dyn Future<Output = Result<PutResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn put<'life0, 'async_trait>(
&'life0 mut self,
key: Bytes,
value: Value,
context: Option<String>,
replication: bool,
) -> Pin<Box<dyn Future<Output = Result<PutResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Put command interface Read more
Source§fn heartbeat<'life0, 'async_trait>(
&'life0 mut self,
known_nodes: Vec<Node>,
) -> Pin<Box<dyn Future<Output = Result<HeartbeatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn heartbeat<'life0, 'async_trait>(
&'life0 mut self,
known_nodes: Vec<Node>,
) -> Pin<Box<dyn Future<Output = Result<HeartbeatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Heartbeat command interface
Source§fn join_cluster<'life0, 'async_trait>(
&'life0 mut self,
known_cluster_node_addr: String,
) -> Pin<Box<dyn Future<Output = Result<JoinClusterResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn join_cluster<'life0, 'async_trait>(
&'life0 mut self,
known_cluster_node_addr: String,
) -> Pin<Box<dyn Future<Output = Result<JoinClusterResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
JoinCluster command interface
Source§fn cluster_state<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ClusterStateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cluster_state<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<ClusterStateResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
ClusterState command interface
Auto Trait Implementations§
impl !Freeze for DbClient
impl RefUnwindSafe for DbClient
impl Send for DbClient
impl Sync for DbClient
impl Unpin for DbClient
impl UnwindSafe for DbClient
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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