pub struct PowerShell { /* private fields */ }Expand description
Provides a persistent interface for executing PowerShell commands.
§Example
let pwsh = PowerShell::new()?;
let out = pwsh.execute("whoami")?;
print!("Output: {}", out);Implementations§
Auto Trait Implementations§
impl Freeze for PowerShell
impl RefUnwindSafe for PowerShell
impl !Send for PowerShell
impl !Sync for PowerShell
impl Unpin for PowerShell
impl UnwindSafe for PowerShell
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