pub struct AppleContainer { /* private fields */ }Expand description
Real backend: shells out to the container CLI via tokio::process.
Implementations§
Source§impl AppleContainer
impl AppleContainer
Trait Implementations§
Source§impl ContainerRuntime for AppleContainer
impl ContainerRuntime for AppleContainer
Source§fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 RunSpec,
) -> Pin<Box<dyn Future<Output = Result<InstanceId, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
spec: &'life1 RunSpec,
) -> Pin<Box<dyn Future<Output = Result<InstanceId, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Launch an instance tagged with
spec.uid. Idempotent callers check
list first.Source§fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
uid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop<'life0, 'life1, 'async_trait>(
&'life0 self,
uid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stop the instance tagged with
uid (no-op if already gone).Source§fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
uid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
uid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Remove the instance tagged with
uid (no-op if already gone).Auto Trait Implementations§
impl Freeze for AppleContainer
impl RefUnwindSafe for AppleContainer
impl Send for AppleContainer
impl Sync for AppleContainer
impl Unpin for AppleContainer
impl UnsafeUnpin for AppleContainer
impl UnwindSafe for AppleContainer
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