Closed lawliet89 closed 6 years ago
Is there a reason why the generic W for WriteLogger must be Send? The struct already moves the value in, and then wraps it in a Mutex. Mutex impls Send regardless of whether its encapsulated type is Send or not.
W
WriteLogger
Send
Mutex
Oops never mind, I'm a retard. I didn't read the documentation properly. Sorry. (I missed the T: Send)
T: Send
Is there a reason why the generic
W
forWriteLogger
must beSend
? The struct already moves the value in, and then wraps it in aMutex
.Mutex
implsSend
regardless of whether its encapsulated type isSend
or not.