Enum bincode::serde::SerializeError
[−]
[src]
pub enum SerializeError { IoError(IoError), SizeLimit, Custom(String), }
An error that can be produced during encoding.
Variants
IoError | An error originating from the underlying | |
SizeLimit | An object could not be encoded with the given size limit. This error is returned before any bytes are written to the
output | |
Custom | A custom error message |
Trait Implementations
impl Error for SerializeError
[src]
fn custom<T: Into<String>>(msg: T) -> Self
Raised when there is general error when deserializing a type.
fn invalid_value(msg: &str) -> Self
Raised when a Serialize
was passed an incorrect value.
impl Display for SerializeError
[src]
impl Error for SerializeError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any.