pub struct DockerBackend { /* private fields */ }Expand description
Docker/Podman runtime backend.
Implementations§
Source§impl DockerBackend
impl DockerBackend
Trait Implementations§
Source§impl Default for DockerBackend
impl Default for DockerBackend
Source§impl RuntimeBackend for DockerBackend
impl RuntimeBackend for DockerBackend
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Backend name for logging and status (e.g., “docker”, “podman”, “systemd”).
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempt to connect to the runtime API. Read more
Source§fn list_instances<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Instance>, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_instances<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Instance>, RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all currently running instances. Read more
Source§fn watch<'life0, 'async_trait>(
&'life0 self,
tx: Sender<RuntimeEvent>,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn watch<'life0, 'async_trait>(
&'life0 self,
tx: Sender<RuntimeEvent>,
cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<(), RuntimeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Watch for lifecycle events, sending them to the provided channel. Read more
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