pub struct Kitty { /* private fields */ }Implementations§
Source§impl Kitty
impl Kitty
pub fn builder() -> KittyBuilder
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 send_command<T: Into<KittyMessage>>( &mut self, command: T, ) -> Result<(), 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 Kitty
impl RefUnwindSafe for Kitty
impl Send for Kitty
impl Sync for Kitty
impl Unpin for Kitty
impl UnwindSafe for Kitty
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