pub struct RemoteMDBXClient<Stub = Channel<RemoteMDBXRequest, RemoteMDBXResponse>>(/* private fields */);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
Source§impl RemoteMDBXClient
impl RemoteMDBXClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<RemoteMDBXRequest, RemoteMDBXResponse, T>>
pub fn new<T>( config: Config, transport: T, ) -> NewClient<Self, RequestDispatch<RemoteMDBXRequest, RemoteMDBXResponse, T>>
Returns a new client stub that sends requests over the given transport.
Source§impl<Stub> RemoteMDBXClient<Stub>where
Stub: Stub<Req = RemoteMDBXRequest, Resp = RemoteMDBXResponse>,
impl<Stub> RemoteMDBXClient<Stub>where
Stub: Stub<Req = RemoteMDBXRequest, Resp = RemoteMDBXResponse>,
pub fn open_env( &self, ctx: Context, path: PathBuf, builder: RemoteEnvironmentConfig, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn env_ro_tx( &self, ctx: Context, env: u64, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn env_rw_tx( &self, ctx: Context, env: u64, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn env_sync( &self, ctx: Context, env: u64, force: bool, ) -> impl Future<Output = Result<Result<bool, ServerError>, RpcError>> + '_
pub fn env_close( &self, ctx: Context, env: u64, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn env_stat( &self, ctx: Context, env: u64, ) -> impl Future<Output = Result<Result<Stat, ServerError>, RpcError>> + '_
pub fn env_info( &self, ctx: Context, env: u64, ) -> impl Future<Output = Result<Result<Info, ServerError>, RpcError>> + '_
pub fn tx_create_db( &self, ctx: Context, env: u64, tx: u64, db: Option<String>, flags: u32, ) -> impl Future<Output = Result<Result<u32, ServerError>, RpcError>> + '_
pub fn tx_get( &self, ctx: Context, env: u64, tx: u64, dbi: u32, key: Vec<u8>, ) -> impl Future<Output = Result<Result<Option<Vec<u8>>, ServerError>, RpcError>> + '_
pub fn tx_put( &self, ctx: Context, env: u64, tx: u64, dbi: u32, key: Vec<u8>, value: Vec<u8>, flags: u32, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn tx_del( &self, ctx: Context, env: u64, tx: u64, dbi: u32, key: Vec<u8>, value: Option<Vec<u8>>, ) -> impl Future<Output = Result<Result<bool, ServerError>, RpcError>> + '_
pub fn tx_ro_cursor( &self, ctx: Context, env: u64, tx: u64, dbi: u32, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn tx_rw_cursor( &self, ctx: Context, env: u64, tx: u64, dbi: u32, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn tx_commit( &self, ctx: Context, env: u64, tx: u64, ) -> impl Future<Output = Result<Result<(bool, CommitLatency), ServerError>, RpcError>> + '_
pub fn tx_abort( &self, ctx: Context, env: u64, tx: u64, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn tx_nested( &self, ctx: Context, env: u64, tx: u64, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn tx_db_stat( &self, ctx: Context, env: u64, tx: u64, dbi: u32, ) -> impl Future<Output = Result<Result<Stat, ServerError>, RpcError>> + '_
pub fn clear_db( &self, ctx: Context, env: u64, tx: u64, dbi: u32, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn cur_get( &self, ctx: Context, env: u64, tx: u64, cur: u64, key: Option<Vec<u8>>, data: Option<Vec<u8>>, op: u32, ) -> impl Future<Output = Result<Result<(Option<Vec<u8>>, Vec<u8>, bool), ServerError>, RpcError>> + '_
pub fn cur_put( &self, ctx: Context, env: u64, tx: u64, cur: u64, key: Vec<u8>, value: Vec<u8>, flags: u32, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn cur_create( &self, ctx: Context, env: u64, tx: u64, cur: u64, ) -> impl Future<Output = Result<Result<u64, ServerError>, RpcError>> + '_
pub fn cur_del( &self, ctx: Context, env: u64, tx: u64, cur: u64, flags: u32, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn cur_close( &self, ctx: Context, env: u64, tx: u64, cur: u64, ) -> impl Future<Output = Result<Result<(), ServerError>, RpcError>> + '_
pub fn batch_cur_get_full( &self, ctx: Context, env: u64, tx: u64, cur: u64, cnt: u64, buffer: u64, op: u32, ) -> impl Future<Output = Result<Result<Vec<(Vec<u8>, Vec<u8>)>, ServerError>, RpcError>> + '_
Trait Implementations§
Source§impl<Stub: Clone> Clone for RemoteMDBXClient<Stub>
impl<Stub: Clone> Clone for RemoteMDBXClient<Stub>
Source§fn clone(&self) -> RemoteMDBXClient<Stub>
fn clone(&self) -> RemoteMDBXClient<Stub>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Stub: Debug> Debug for RemoteMDBXClient<Stub>
impl<Stub: Debug> Debug for RemoteMDBXClient<Stub>
Auto Trait Implementations§
impl<Stub> Freeze for RemoteMDBXClient<Stub>where
Stub: Freeze,
impl<Stub> RefUnwindSafe for RemoteMDBXClient<Stub>where
Stub: RefUnwindSafe,
impl<Stub> Send for RemoteMDBXClient<Stub>where
Stub: Send,
impl<Stub> Sync for RemoteMDBXClient<Stub>where
Stub: Sync,
impl<Stub> Unpin for RemoteMDBXClient<Stub>where
Stub: Unpin,
impl<Stub> UnwindSafe for RemoteMDBXClient<Stub>where
Stub: UnwindSafe,
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