pub fn take_channel(chan: &mut Channel) -> Channel
Takes ownership of the channel in chan. chan is replaced with an invalid channel.
chan