pub struct Docker { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Runtime for Docker
impl Runtime for Docker
fn name(&self) -> &str
async fn list(&self) -> Result<Vec<ContainerInfo>>
async fn inspect(&self, info: &mut ContainerInfo) -> Result<()>
async fn logs( &self, info: &ContainerInfo, opts: &LogOpts, ) -> Result<Receiver<Bytes>>
async fn pull_image(&self, image: &str) -> Result<()>
async fn create_container(&self, spec: &ContainerSpec) -> Result<String>
async fn start(&self, id: &str) -> Result<()>
async fn stop(&self, id: &str, timeout_secs: u64) -> Result<()>
async fn remove(&self, id: &str, force: bool) -> Result<()>
async fn ensure_network(&self, name: &str) -> Result<()>
async fn remove_network(&self, name: &str) -> Result<()>
async fn connect_network( &self, container: &str, network: &str, aliases: &[String], ) -> Result<()>
async fn disconnect_network(&self, container: &str, network: &str) -> Result<()>
async fn remove_volume(&self, name: &str) -> Result<()>
async fn exec_run(&self, id: &str, cmd: &[String]) -> Result<(i64, Vec<u8>)>
async fn exec_stream(&self, id: &str, opts: &ExecOpts) -> Result<ExecHandle>
async fn exec_resize( &self, exec_id: &str, width: u32, height: u32, ) -> Result<()>
async fn exec_exit_code(&self, exec_id: &str) -> Result<i64>
Auto Trait Implementations§
impl Forget for Docker
impl Freeze for Docker
impl Move for Docker
impl RefUnwindSafe for Docker
impl Send for Dockerwhere
RawVecInner: Send,
impl Sync for Dockerwhere
RawVecInner: Sync,
impl Unpin for Docker
impl UnsafeUnpin for Docker
impl UnwindSafe for Dockerwhere
RawVecInner: UnwindSafe,
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