pub struct Client {
pub client: Client,
pub sequence_id: Arc<AtomicU64>,
}
Expand description
A client
Fields§
§client: Client
The inner http client
sequence_id: Arc<AtomicU64>
The sequence id
Implementations§
Source§impl Client
impl Client
Sourcepub async fn execute_commands(
&self,
commands: &[Command],
node: Option<&str>,
) -> Result<Vec<Response<ResponseData>>, Error>
pub async fn execute_commands( &self, commands: &[Command], node: Option<&str>, ) -> Result<Vec<Response<ResponseData>>, Error>
Execute a series of commands.
§Retries
If the client receives an EAGAIN, it will attempt to retry the request. After a number of tries with the same EAGAIN error, the client will return EAGAIN to the caller.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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