I have a world object that I want to contain a list of TCP writers (tokio WriteHalf). I can express this in a struct, but I seem to be unable to create/initialize it.
I think I understand what the issue is: tokio doesn't want people to Copy the WriteHalf, which I understand. And rust tried to initialize the array it looks at the Some() type and concludes that it doesn't have Copy so it fails, even though I explicitly want to initialize it as an array of None.
Am I understanding the problem correctly? What would be a good way to work around this problem? I assume those using ECS for TCP connections have encountered this in some way or another.