Skip to main content

Runtime

Trait Runtime 

Source
pub trait Runtime:
    Send
    + Sync
    + 'static {
Show 20 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 gc_images( &self, _low_free_percent: u64, _high_free_percent: u64, ) -> impl Future<Output = Result<usize>> + 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 { ... } fn shutdown(&self) -> impl Future<Output = ()> + Send { ... }
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn list(&self) -> impl Future<Output = Result<Vec<ContainerInfo>>> + Send

Source

fn inspect( &self, info: &mut ContainerInfo, ) -> impl Future<Output = Result<()>> + Send

Source

fn logs( &self, info: &ContainerInfo, opts: &LogOpts, ) -> impl Future<Output = Result<Receiver<Bytes>>> + Send

Provided Methods§

Source

fn pull_image(&self, _image: &str) -> impl Future<Output = Result<()>> + Send

Source

fn create_container( &self, _spec: &ContainerSpec, ) -> impl Future<Output = Result<String>> + Send

Source

fn start(&self, _id: &str) -> impl Future<Output = Result<()>> + Send

Source

fn stop( &self, _id: &str, _timeout_secs: u64, ) -> impl Future<Output = Result<()>> + Send

Source

fn remove( &self, _id: &str, _force: bool, ) -> impl Future<Output = Result<()>> + Send

Source

fn gc_images( &self, _low_free_percent: u64, _high_free_percent: u64, ) -> impl Future<Output = Result<usize>> + Send

Source

fn ensure_network(&self, _name: &str) -> impl Future<Output = Result<()>> + Send

Source

fn remove_network(&self, _name: &str) -> impl Future<Output = Result<()>> + Send

Source

fn connect_network( &self, _container: &str, _network: &str, _aliases: &[String], ) -> impl Future<Output = Result<()>> + Send

Source

fn disconnect_network( &self, _container: &str, _network: &str, ) -> impl Future<Output = Result<()>> + Send

Source

fn remove_volume(&self, _name: &str) -> impl Future<Output = Result<()>> + Send

Source

fn exec_run( &self, _id: &str, _cmd: &[String], ) -> impl Future<Output = Result<(i64, Vec<u8>)>> + Send

Source

fn exec_stream( &self, _id: &str, _opts: &ExecOpts, ) -> impl Future<Output = Result<ExecHandle>> + Send

Source

fn exec_resize( &self, _exec_id: &str, _width: u32, _height: u32, ) -> impl Future<Output = Result<()>> + Send

Source

fn exec_exit_code( &self, _exec_id: &str, ) -> impl Future<Output = Result<i64>> + Send

Source

fn shutdown(&self) -> impl Future<Output = ()> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§