pub trait Runtime:
Send
+ Sync
+ 'static {
Show 18 methods
// Required methods
fn name(&self) -> &str;
fn list(&self) -> impl Future<Output = Result<Vec<ContainerInfo>>> + Send;
fn inspect(
&self,
info: &mut ContainerInfo,
) -> impl Future<Output = Result<()>> + Send;
fn logs(
&self,
info: &ContainerInfo,
opts: &LogOpts,
) -> impl Future<Output = Result<Receiver<Bytes>>> + Send;
// Provided methods
fn pull_image(
&self,
_image: &str,
) -> impl Future<Output = Result<()>> + Send { ... }
fn create_container(
&self,
_spec: &ContainerSpec,
) -> impl Future<Output = Result<String>> + Send { ... }
fn start(&self, _id: &str) -> impl Future<Output = Result<()>> + Send { ... }
fn stop(
&self,
_id: &str,
_timeout_secs: u64,
) -> impl Future<Output = Result<()>> + Send { ... }
fn remove(
&self,
_id: &str,
_force: bool,
) -> impl Future<Output = Result<()>> + Send { ... }
fn ensure_network(
&self,
_name: &str,
) -> impl Future<Output = Result<()>> + Send { ... }
fn remove_network(
&self,
_name: &str,
) -> impl Future<Output = Result<()>> + Send { ... }
fn connect_network(
&self,
_container: &str,
_network: &str,
_aliases: &[String],
) -> impl Future<Output = Result<()>> + Send { ... }
fn disconnect_network(
&self,
_container: &str,
_network: &str,
) -> impl Future<Output = Result<()>> + Send { ... }
fn remove_volume(
&self,
_name: &str,
) -> impl Future<Output = Result<()>> + Send { ... }
fn exec_run(
&self,
_id: &str,
_cmd: &[String],
) -> impl Future<Output = Result<(i64, Vec<u8>)>> + Send { ... }
fn exec_stream(
&self,
_id: &str,
_opts: &ExecOpts,
) -> impl Future<Output = Result<ExecHandle>> + Send { ... }
fn exec_resize(
&self,
_exec_id: &str,
_width: u32,
_height: u32,
) -> impl Future<Output = Result<()>> + Send { ... }
fn exec_exit_code(
&self,
_exec_id: &str,
) -> impl Future<Output = Result<i64>> + Send { ... }
}Required Methods§
fn name(&self) -> &str
fn list(&self) -> impl Future<Output = Result<Vec<ContainerInfo>>> + Send
fn inspect( &self, info: &mut ContainerInfo, ) -> impl Future<Output = Result<()>> + Send
fn logs( &self, info: &ContainerInfo, opts: &LogOpts, ) -> impl Future<Output = Result<Receiver<Bytes>>> + Send
Provided Methods§
fn pull_image(&self, _image: &str) -> impl Future<Output = Result<()>> + Send
fn create_container( &self, _spec: &ContainerSpec, ) -> impl Future<Output = Result<String>> + Send
fn start(&self, _id: &str) -> impl Future<Output = Result<()>> + Send
fn stop( &self, _id: &str, _timeout_secs: u64, ) -> impl Future<Output = Result<()>> + Send
fn remove( &self, _id: &str, _force: bool, ) -> impl Future<Output = Result<()>> + Send
fn ensure_network(&self, _name: &str) -> impl Future<Output = Result<()>> + Send
fn remove_network(&self, _name: &str) -> impl Future<Output = Result<()>> + Send
fn connect_network( &self, _container: &str, _network: &str, _aliases: &[String], ) -> impl Future<Output = Result<()>> + Send
fn disconnect_network( &self, _container: &str, _network: &str, ) -> impl Future<Output = Result<()>> + Send
fn remove_volume(&self, _name: &str) -> impl Future<Output = Result<()>> + Send
fn exec_run( &self, _id: &str, _cmd: &[String], ) -> impl Future<Output = Result<(i64, Vec<u8>)>> + Send
fn exec_stream( &self, _id: &str, _opts: &ExecOpts, ) -> impl Future<Output = Result<ExecHandle>> + Send
fn exec_resize( &self, _exec_id: &str, _width: u32, _height: u32, ) -> impl Future<Output = Result<()>> + Send
fn exec_exit_code( &self, _exec_id: &str, ) -> impl Future<Output = Result<i64>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".