Module error

Module error 

Source
Expand description

Serde and plain-Preserves codec errors.

Enums§

Error
Representation of parse, deserialization, and other conversion errors.
ExpectedKind
Used in Error::Expected to indicate what was expected.
Received
Used in Error::Expected to indicate what was received.

Functions§

eof
Produce the generic “end of file” error, Error::Io(io_eof())
io_eof
Produce an io::Error of io::ErrorKind::UnexpectedEof.
io_syntax_error
Produce a syntax error (io::ErrorKind::InvalidData) bearing the message s
is_eof_error
True iff e is an “end of file” error; see is_eof_io_error
is_eof_io_error
True iff e is io::ErrorKind::UnexpectedEof
is_io_error
True iff e is Error::Io
is_syntax_error
True iff e is a syntax error; see is_syntax_io_error
is_syntax_io_error
True iff e is an io::ErrorKind::InvalidData (a syntax error)
syntax_error
Produce a syntax error bearing the message s