I think he was talking about a gun not a fire arm. Something that uses only electricity to expell the projectile.
I took his question to mean electrically operated, but not necessarily a rail gun, when he asked if "or are they all mechanical."