pub struct WinRMClient { /* private fields */ }Implementations§
Source§impl WinRMClient
impl WinRMClient
pub fn new( endpoint: &str, user: &str, password: &str, auth_method: &str, insecure: bool, cacert: Option<String>, ) -> Result<Self>
pub fn open_shell(&mut self) -> Result<String>
pub fn run_command(&mut self, shell_id: &str, command: &str) -> Result<String>
pub fn get_command_output( &mut self, shell_id: &str, command_id: &str, ) -> Result<(String, String, i32)>
pub fn close_shell(&mut self, shell_id: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for WinRMClient
impl !RefUnwindSafe for WinRMClient
impl Send for WinRMClient
impl Sync for WinRMClient
impl Unpin for WinRMClient
impl !UnwindSafe for WinRMClient
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