pub struct CubeSandbox { /* private fields */ }Expand description
Cube sandbox — shells out to the cube CLI. The exact flags depend on the
deployed Cube runtime; adjust run_args per environment.
Implementations§
Source§impl CubeSandbox
impl CubeSandbox
Trait Implementations§
Source§impl Default for CubeSandbox
impl Default for CubeSandbox
Source§impl Sandbox for CubeSandbox
impl Sandbox for CubeSandbox
Source§fn spawn<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 ExecSpec,
) -> Pin<Box<dyn Future<Output = Result<SandboxHandle, SandboxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn spawn<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 ExecSpec,
) -> Pin<Box<dyn Future<Output = Result<SandboxHandle, SandboxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Spawn a persistent sandbox session and return a handle.
Source§fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
handle: &'life1 SandboxHandle,
cmd: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<ExecOutput, SandboxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exec<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
handle: &'life1 SandboxHandle,
cmd: &'life2 [String],
) -> Pin<Box<dyn Future<Output = Result<ExecOutput, SandboxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute
cmd inside a previously spawned session.Auto Trait Implementations§
impl Freeze for CubeSandbox
impl RefUnwindSafe for CubeSandbox
impl Send for CubeSandbox
impl Sync for CubeSandbox
impl Unpin for CubeSandbox
impl UnsafeUnpin for CubeSandbox
impl UnwindSafe for CubeSandbox
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