Struct ws::Error [] [src]

pub struct Error {
    pub kind: Kind,
    pub details: Cow<'static, str>,
}

A struct indicating the kind of error that has occured and any precise details of that error.

Fields

kind: Kind details: Cow<'static, str>

Methods

impl Error
[src]

fn new<I>(kind: Kind, details: I) -> Error where I: Into<Cow<'static, str>>

fn into_box(self) -> Box<StdError>

Trait Implementations

impl Debug for Error
[src]

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

Formats the value using the given formatter.

impl Display for Error
[src]

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

Formats the value using the given formatter.

impl StdError for Error
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&StdError>

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<Error> for Error
[src]

fn from(err: Error) -> Error

Performs the conversion.

impl From<NotifyError<Command>> for Error
[src]

fn from(err: NotifyError<Command>) -> Error

Performs the conversion.

impl From<TimerError> for Error
[src]

fn from(err: TimerError) -> Error

Performs the conversion.

impl From<Utf8Error> for Error
[src]

fn from(err: Utf8Error) -> Error

Performs the conversion.

impl<B> From<Box<B>> for Error where B: StdError + Send + Sync + 'static
[src]

fn from(err: Box<B>) -> Error

Performs the conversion.