pub fn new(config: RuncConfiguration) -> Result<Self> {
        let command = config
            .command
            .or_else(|| find_binary("runc"))
            .context(RuncNotFoundError {})?;

        let timeout = config
            .timeout
            .or_else(|| Some(Duration::from_millis(5000)))
            .unwrap();

        debug!("Runc initialized.");

        Ok(Self {
            command,
            timeout,
            root: config.root,
            debug: config.debug,
            rootless: config.rootless,
        })
    }
/// Create a Runc instance with the provided configuration.
Create a Runc instance with the provided configuration.
Create a Runc instance with the provided configuration .
pub fn new(config: RuncConfiguration) -> Result<Self> {
        let command = config
            .command
            .or_else(|| find_binary("runc"))
            .context(RuncNotFoundError {})?;
        let timeout = config
            .timeout
            .or_else(|| Some(Duration::from_millis(5000)))
            .unwrap();
        debug!("Runc initialized.");
        Ok(Self {
            command,
            timeout,
            root: config.root,
            debug: config.debug,
            rootless: config.rootless,
        })
    }
pub fn new ( config : RuncConfiguration ) -> Result < Self > { let command = config . command . or_else ( | | find_binary ( " " ) ) . context ( RuncNotFoundError { } ) ? ; let timeout = config . timeout . or_else ( | | Some ( Duration :: from_millis ( 5000 ) ) ) . unwrap ( ) ; debug ! ( " " ) ; Ok ( Self { command , timeout , root : config . root , debug : config . debug , rootless : config . rootless , } ) }
Create a Runc instance with the provided configuration.
Create a Runc instance with the provided configuration .
config
RuncConfiguration
config
RuncConfiguration