pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(url: &str) -> Self
pub fn handshake(&mut self) -> Result<PktIter, ClientError>
Sourcepub fn command(
&self,
command: &str,
capabilities: Option<&[(&str, Option<&[&str]>)]>,
arguments: &[&str],
) -> Result<impl Read + Send, ClientError>
👎Deprecated
pub fn command( &self, command: &str, capabilities: Option<&[(&str, Option<&[&str]>)]>, arguments: &[&str], ) -> Result<impl Read + Send, ClientError>
Use Client::request instead
pub fn request(&self, body: Vec<u8>) -> Result<PktIter, ClientError>
pub fn ls_ref(&self, prefix: &str) -> Result<String, ClientError>
Sourcepub fn want_ref(&self, prefix: &str) -> Result<String, ClientError>
👎Deprecated
pub fn want_ref(&self, prefix: &str) -> Result<String, ClientError>
Use RequestBuilder::want with Client::ls_ref instead
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