Replace any pending error with `(kind, msg)`.
(&mut self, kind: u32, msg: String)
| 138 | |
| 139 | // Replace any pending error with `(kind, msg)`. |
| 140 | pub fn set(&mut self, kind: u32, msg: String) { |
| 141 | self.0 = Some((kind, msg)); |
| 142 | } |
| 143 | |
| 144 | // Convenience: stash a typed error. |
| 145 | pub fn set_typed(&mut self, kind: ErrorKind, msg: String) { |
no outgoing calls
no test coverage detected