(&self, f: &mut fmt::Formatter<'_>)
| 1019 | |
| 1020 | impl fmt::Debug for Errno { |
| 1021 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 1022 | let mut fmt = f.debug_struct("Errno"); |
| 1023 | fmt.field("code", &self.code()); |
| 1024 | if let Some(msg) = self.message() { |
| 1025 | fmt.field("message", &msg); |
| 1026 | } |
| 1027 | fmt.finish() |
| 1028 | } |
| 1029 | } |
| 1030 | |
| 1031 | impl fmt::Display for Errno { |