xtra icon indicating copy to clipboard operation
xtra copied to clipboard

`as_either` for `MessageChannel`?

Open bobdebuildr opened this issue 3 years ago • 2 comments

I would like to store various MessageChannel<M, R, Rc> in a Vec<MessageChannel<M, R, Either>>, where Rc could vary. It would be nice to have an as_either() function on MessageChannel similar to the one for Address.

Is there some deeper reason why this isn't possible or shouldn't be done?

bobdebuildr avatar Sep 14 '22 10:09 bobdebuildr

I managed to add this function- if you're interested I can open a pull request.

bobdebuildr avatar Sep 14 '22 13:09 bobdebuildr

Good catch! This was probably missed in #102. Feel free to open a PR, I'd appreciate that :)

Restioson avatar Sep 14 '22 16:09 Restioson

Resolved in #192.

thomaseizinger avatar Oct 28 '22 02:10 thomaseizinger