This is because ENetMote is not a a UCLASS, USTRUCT or UENUM. UHT can't see or parse types that are native only.
Marking a function as BlueprintPure will result in a UHT build failure in Visual Studio if the function returns an ENetMode value. The ENetMode enum is not marked as a UENUM(), causing the build to fail.
The build will fail with the message Unrecognized type 'ENetMode'
The build finishes successfully.
Head over to the existingAnswerHub thread and let us know what's up.