Skip to main content

ContainerHome

Trait ContainerHome 

Source
pub trait ContainerHome {
    // Required methods
    fn stage_out(
        &self,
        project: &str,
        sid: &str,
        dest: &Path,
    ) -> Result<(), String>;
    fn remove(&self, project: &str, sid: &str) -> Result<(), String>;
}
Expand description

Where a container’s session files can be reached. Blocking, and called from a blocking thread: DockerHome is the container; a test’s is a folder.

Required Methods§

Source

fn stage_out(&self, project: &str, sid: &str, dest: &Path) -> Result<(), String>

Copy the session’s files (<sid>.jsonl and <sid>/, those that exist) into dest.

Source

fn remove(&self, project: &str, sid: &str) -> Result<(), String>

Remove the session’s files, by session id.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§