Magnetic field-induced dissipation-free state in superconducting nanostructures