pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub async fn connect() -> Result<Self>
pub async fn send_command_begin( &mut self, pid: u32, command: String, ) -> Result<()>
pub async fn send_command_end(&mut self, pid: u32, exit_code: i32) -> Result<()>
pub async fn send_save_stats_command(&mut self) -> Result<()>
pub async fn send_stop(&mut self) -> Result<()>
pub async fn send_get_stats(&mut self) -> Result<HashMap<String, CommandStats>>
pub async fn send_health_check(&mut self) -> Result<String>
Auto Trait Implementations§
impl !Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin 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