The edging can be a distinct feature of your rug design or you can have a neutral finishing or no visible border at all.
There are four options: overlock, border, blind binding or simply cut.
Not all finishings are suitable for all carpet types. Overlock stitching and borders are the most widely available options while the long pile carpets are especially suitable for blind binding.
See overview of all the options.