Struct id3::Error [] [src]

pub struct Error {
    pub kind: ErrorKind,
    pub description: &'static str,
}

A structure able to represent any error that may occur while performing metadata operations.

Fields

kind: ErrorKind

The kind of error.

description: &'static str

A human readable string describing the error.

Methods

impl Error
[src]

fn new(kind: ErrorKind, description: &'static str) -> Error

Creates a new Error using the error kind and description.

Trait Implementations

impl Error for Error
[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. Read more

impl From<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

fn from(err: FromUtf8Error) -> Error

Performs the conversion.

impl Debug for Error
[src]

fn fmt(&self, out: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, out: &mut Formatter) -> Result

Formats the value using the given formatter.