Take the message from the envelope # Panics If the envelope has no message
(&mut self)
| 82 | /// |
| 83 | /// If the envelope has no message |
| 84 | pub fn unpack(&mut self) -> M { |
| 85 | self.msg.take().expect("message not found") |
| 86 | } |
| 87 | /// Repack a message, and return a new envelope with the message |
| 88 | pub fn repack<T>(&self, msg: T) -> Envelope<T> { |
| 89 | Envelope { |