pub struct KataSandbox { /* private fields */ }Expand description
Kata sandbox — Docker Engine API with the kata runtime.
Kata containers are started exactly like Docker containers but with
HostConfig.runtime = "kata", so they reuse the same bollard client and the
same SandboxResourceLimits as the default Docker provider. No docker
CLI is involved.
Implementations§
Trait Implementations§
Source§impl Default for KataSandbox
impl Default for KataSandbox
Source§impl Sandbox for KataSandbox
impl Sandbox for KataSandbox
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 KataSandbox
impl !RefUnwindSafe for KataSandbox
impl !UnwindSafe for KataSandbox
impl Send for KataSandbox
impl Sync for KataSandbox
impl Unpin for KataSandbox
impl UnsafeUnpin for KataSandbox
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