Enum ipc_channel::DeserializeError
[−]
pub enum DeserializeError {
IoError(Error),
InvalidEncoding(InvalidEncoding),
SizeLimit,
Serde(Error),
}An error that can be produced during decoding.
If decoding from a Buffer, assume that the buffer has been left in an invalid state.
Variants
IoError(Error)If the error stems from the reader that is being used during decoding, that error will be stored and returned here.
InvalidEncoding(InvalidEncoding)If the bytes in the reader are not decodable because of an invalid
encoding, this error will be returned. This error is only possible
if a stream is corrupted. A stream produced from encode or encode_into
should never produce an InvalidEncoding error.
SizeLimitIf decoding a message takes more than the provided size limit, this error is returned.
Serde(Error)Trait Implementations
impl Error for DeserializeError
fn description(&self) -> &str
fn cause(&self) -> Option<&Error>
impl Error for DeserializeError
fn custom<T>(desc: T) -> DeserializeError where T: Into<String>
fn end_of_stream() -> DeserializeError
impl From<Error> for DeserializeError
fn from(err: Error) -> DeserializeError
Performs the conversion.
impl From<Error> for DeserializeError
fn from(err: Error) -> DeserializeError
Performs the conversion.
impl Display for DeserializeError
impl Debug for DeserializeError
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl From<UnixError> for DeserializeError[src]
fn from(unix_error: UnixError) -> DeserializeError
Performs the conversion.