If the drain is connected to a sewer system, there must be a P trap somewhere, and the pipe must be sealed from the system to the P trap, but not after the P trap towards the drain or washer. Often floor drains have a built-in trap or a P trap in the concrete slab, and drains can open-flow into them.
Since this is a cabin it is possible that the drain does not connect to a sewer system, and you'd have to check this to confirm. It could possibly flow outside into the open, into a french drain etc... Any P trap would then function as a rodent/insect stop, not a gas stop.
If you see water pooled at the bottom of that drain, and it is the water is ar least 2 inches deep (check with a wooden or cardboard dip stick), you have a strong indication it's a trap.
If the cabin has a drained toilet, you would be sure that there is a sewer system. To test whether your washer drain is connected you can check for this by ear: first remove all water, if any, at the bottom of the drain. Then flush the toilet and listen for rushing water. If you hear water rushing, then this drain is likely connected to the sewer and must be sealed.
A camera inspection or smoke test would be required to confirm this.