pub struct Client { /* private fields */ }
Expand description
A client for interacting with a VedDB server
Implementations§
Source§impl Client
impl Client
Sourcepub async fn connect(addr: impl Into<SocketAddr>) -> Result<Self>
pub async fn connect(addr: impl Into<SocketAddr>) -> Result<Self>
Create a new client connected to the specified address
Sourcepub async fn with_pool_size(
addr: impl Into<SocketAddr>,
pool_size: usize,
) -> Result<Self>
pub async fn with_pool_size( addr: impl Into<SocketAddr>, pool_size: usize, ) -> Result<Self>
Create a new client with a connection pool of the specified size
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