pub struct DockerBackend { /* private fields */ }Expand description
Docker-based VM backend.
Each VM is a long-lived container; snapshots are committed images.
Implementations§
Trait Implementations§
Source§impl Debug for DockerBackend
impl Debug for DockerBackend
Source§impl VmBackend for DockerBackend
impl VmBackend for DockerBackend
Source§fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
image: &'life1 str,
_config: &'life2 VmConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Vm>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
image: &'life1 str,
_config: &'life2 VmConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Vm>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Boot a new VM from the given OCI image reference.
Source§fn restore<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
_config: &'life2 VmConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Vm>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn restore<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
_config: &'life2 VmConfig,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Vm>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Restore a VM from a previously taken snapshot.
Source§fn snapshot_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn snapshot_exists<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check whether a snapshot exists in the backend store.
Source§fn remove_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
snapshot: &'life1 SnapshotId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete a snapshot from the backend store.
Auto Trait Implementations§
impl !RefUnwindSafe for DockerBackend
impl !UnwindSafe for DockerBackend
impl Freeze for DockerBackend
impl Send for DockerBackend
impl Sync for DockerBackend
impl Unpin for DockerBackend
impl UnsafeUnpin for DockerBackend
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