Enum tokio_jsoncodec::Error[][src]

pub enum Error {
    Io(Error),
    Json(Error),
}

The Error type for this crate.

This is necessary to not lose information about the error. Encoder requires that the Error implement From<std::io::Error>, and while a serde_json::Error can possibly be an IO error, there's no way to combine the two.

If you just want an io::Error, From<Error> is implemented for it.

Variants

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error