Takes the message out of the envelope, leaving a `None` in its place
(&mut self)
| 97 | } |
| 98 | /// Takes the message out of the envelope, leaving a `None` in its place |
| 99 | pub fn take(&mut self) -> Envelope<M> { |
| 100 | Envelope { |
| 101 | msg: self.msg.take(), |
| 102 | info: self.info.clone(), |
| 103 | } |
| 104 | } |
| 105 | /// Return a reference to the message |
| 106 | /// |
| 107 | /// # Panics |