pub fn force_admin_port(path: PathBuf, port: u16) -> anyhow::Result<()> {
    let mut config = read_config(path.clone())?.expect("Failed to find config to force admin port");
    set_admin_port(&mut config, port);
    write_config(path, &config);
    Ok(())
}
/// Update the first admin interface to use this port.
Update the first admin interface to use this port.
Update the first admin interface to use this port .
pub fn force_admin_port(path: PathBuf, port: u16) -> anyhow::Result<()> {
    let mut config = read_config(path.clone())?.expect("Failed to find config to force admin port");
    set_admin_port(&mut config, port);
    write_config(path, &config);
    Ok(())
}
pub fn force_admin_port ( path : PathBuf , port : u16 ) -> anyhow :: Result < ( ) > { let mut config = read_config ( path . clone ( ) ) ? . expect ( " " ) ; set_admin_port ( & mut config , port ) ; write_config ( path , & config ) ; Ok ( ( ) ) }
Update the first admin interface to use this port.
Update the first admin interface to use this port .
path
PathBuf
port
u16
path
PathBuf
port
u16