(buf: &[u8])
| 75 | } |
| 76 | |
| 77 | pub fn decode(buf: &[u8]) -> Result<Self, String> { |
| 78 | let proto = ProtoDecodeError::decode(buf).map_err(|err| err.to_string())?; |
| 79 | proto.into_rust().map_err(|err| err.to_string()) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | impl Display for DecodeError { |