Hi all,
I am debugging a piece of code and it will be extremely useful to know when a Sender and a Receiver get dropped.
Is there any way to have this information logged? I would prefer to avoid wrapping them in a custom type.
Cheers,
Simone
Hi all,
I am debugging a piece of code and it will be extremely useful to know when a Sender and a Receiver get dropped.
Is there any way to have this information logged? I would prefer to avoid wrapping them in a custom type.
Cheers,
Simone
You can't do this directly, but you can wrap them in a custom type ("newtype") that has a noisy drop implementation. See also Deref
trait.
Thanks!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.