pub struct Commands { /* private fields */ }Expand description
Command-execution surface, obtained via crate::Sandbox::commands.
Implementations§
Source§impl Commands
impl Commands
Sourcepub async fn run(
&self,
command: &str,
options: CommandRunOptions,
) -> Result<CommandResult, HeyoError>
pub async fn run( &self, command: &str, options: CommandRunOptions, ) -> Result<CommandResult, HeyoError>
POST /sandbox/:id/exec. Runs command with sh -c.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Commands
impl !UnwindSafe for Commands
impl Freeze for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
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