pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn start_connect( address: SocketAddr, config: Config, ) -> Result<Client, Error>
pub fn encoding(&self) -> Result<&'static str, Error>
pub fn is_ready(&self) -> bool
Sourcepub async fn request(&self, payload: Vec<u8>) -> Result<Vec<u8>, Error>
pub async fn request(&self, payload: Vec<u8>) -> Result<Vec<u8>, Error>
Send a request to the server.
pub async fn await_ready(&self) -> Result<(), Error>
pub fn is_closed(&self) -> bool
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