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>>,
I: Into<Cow<'static, str>>,
fn into_box(self) -> Box<StdError>
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
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]
impl From<Error> for Error
[src]
impl From<SendError<Command>> for Error
[src]
impl From<TimerError> for Error
[src]
impl From<Utf8Error> for Error
[src]
impl<B> From<Box<B>> for Error where
B: StdError + Send + Sync + 'static,
[src]
B: StdError + Send + Sync + 'static,