pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn connect(socket_path: impl AsRef<Path>) -> Result<Self, ClientError>
pub fn subscribe(&self) -> Receiver<ServerFrame>
pub const fn version(&self) -> ProtocolVersion
pub async fn request( &self, message: ClientMessage, ) -> Result<ServerResponse, ClientError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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