If it is rust, I use Vacaway's Rust Assasin product with good results. However, the longer it has been in the carpet, the harder rust is to remove.
The color you see may well be leached-out furniture stain, not rust. If it is, it may well be permanent.
Chlorine bleach might remove it, but will probably also remove carpet color as well.