pub struct Sandbox { /* private fields */ }Expand description
A sandbox, from Client::create_sandbox or Client::connect_sandbox.
It runs until Sandbox::stop: dropping it doesn’t stop it.
Implementations§
Source§impl Sandbox
impl Sandbox
pub fn name(&self) -> &str
pub fn commands(&self) -> Commands
pub fn files(&self) -> Files
Sourcepub async fn state(&self) -> Result<RunState>
pub async fn state(&self) -> Result<RunState>
Where it is: queued, running, paused, stopped, failed.
pub async fn pause(&self) -> Result<()>
pub async fn resume(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Sandbox
impl !UnwindSafe for Sandbox
impl Forget for Sandbox
impl Freeze for Sandbox
impl Send for Sandbox
impl Sync for Sandbox
impl Unpin for Sandbox
impl UnsafeUnpin for Sandbox
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