pub trait Container {
Show 15 methods
// Required methods
fn docker(&self) -> &Arc<Docker>;
fn id(&self) -> &String;
fn image_name(&self) -> &String;
// Provided methods
fn remove<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn restart<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn kill<'life0, 'async_trait>(
&'life0 self,
remove: bool,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn start_container<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn run_and_decode<'life0, 'async_trait, F, Fut>(
&'life0 self,
timeout_secs: Option<u64>,
on_log: F,
) -> Pin<Box<dyn Future<Output = ContainerResult<FunctionResult>> + Send + 'async_trait>>
where F: Fn(String) -> Fut + Send + Sync + 'async_trait,
Fut: Future<Output = ()> + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn run<'life0, 'async_trait, F, Fut>(
&'life0 self,
timeout_secs: Option<u64>,
on_log: F,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where F: Fn(String) -> Fut + Send + Sync + 'async_trait,
Fut: Future<Output = ()> + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn run_command<'life0, 'async_trait, F, Fut>(
&'life0 self,
cmd: Vec<String>,
timeout_secs: Option<u64>,
on_log: F,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where F: Fn(String) -> Fut + Send + Sync + 'async_trait,
Fut: Future<Output = ()> + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn attach_and_collect_logs<'life0, 'async_trait, F, Fut>(
&'life0 self,
timeout_secs: Option<u64>,
on_log: F,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where F: Fn(String) -> Fut + Send + Sync + 'async_trait,
Fut: Future<Output = ()> + Send + 'async_trait,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn fetch_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn fetch_measurement<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn run_get_measurement<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_ip_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn docker(&self) -> &Arc<Docker>
fn id(&self) -> &String
fn image_name(&self) -> &String
Provided Methods§
fn remove<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn restart<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn kill<'life0, 'async_trait>(
&'life0 self,
remove: bool,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn start_container<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<()>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn run_and_decode<'life0, 'async_trait, F, Fut>( &'life0 self, timeout_secs: Option<u64>, on_log: F, ) -> Pin<Box<dyn Future<Output = ContainerResult<FunctionResult>> + Send + 'async_trait>>
fn run<'life0, 'async_trait, F, Fut>( &'life0 self, timeout_secs: Option<u64>, on_log: F, ) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
fn run_command<'life0, 'async_trait, F, Fut>( &'life0 self, cmd: Vec<String>, timeout_secs: Option<u64>, on_log: F, ) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
fn attach_and_collect_logs<'life0, 'async_trait, F, Fut>( &'life0 self, timeout_secs: Option<u64>, on_log: F, ) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>
fn fetch_file<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_measurement<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn run_get_measurement<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn get_ip_address<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContainerResult<String>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.