1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// TODO: Come back and document this. #![allow(missing_docs)] error_chain! { foreign_links { Utf8(::std::string::FromUtf8Error); } errors { UnexpectedEndOfInput { description("Encountered unexpected end of input while reading message from server.") display("Encountered unexpected end of input while reading message from server.") } InputTooLong(message: String) { description("The input was too long.") display("{}", message) } } }