I’m trying to use the error_chain library with the
std::sync::mpsc queues. I’d like to have the
SendError be a
foreign_link so that I can use it with
.chain_err(), but I’m not sure if there’s any way to specify the foreign link with the generic parameter intact. My code is itself a library that is parameterized by the same type that would parameterize the
SendError, which is why I don’t know it in advance.