pub struct KittyClient { /* private fields */ }Implementations§
Source§impl KittyClient
impl KittyClient
pub async fn connect<P: AsRef<Path>>(path: P) -> Result<Self, KittyError>
pub async fn connect_with_timeout<P: AsRef<Path>>( path: P, timeout_duration: Duration, ) -> Result<Self, KittyError>
pub fn with_timeout(self, timeout: Duration) -> Self
pub async fn send(&mut self, message: &KittyMessage) -> Result<(), KittyError>
pub async fn receive(&mut self) -> Result<KittyResponse, KittyError>
pub async fn execute( &mut self, message: &KittyMessage, ) -> Result<KittyResponse, KittyError>
pub async fn send_all( &mut self, message: &KittyMessage, ) -> Result<(), KittyError>
pub async fn execute_all( &mut self, message: &KittyMessage, ) -> Result<KittyResponse, KittyError>
pub async fn reconnect(&mut self) -> Result<(), KittyError>
pub async fn close(&mut self) -> Result<(), KittyError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KittyClient
impl RefUnwindSafe for KittyClient
impl Send for KittyClient
impl Sync for KittyClient
impl Unpin for KittyClient
impl UnwindSafe for KittyClient
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