Struct ws::Error [−][src]
A struct indicating the kind of error that has occurred and any precise details of that error.
Fields
kind: Kind
details: Cow<'static, str>
Methods
impl Error
[src]
impl Error
pub fn new<I>(kind: Kind, details: I) -> Error where
I: Into<Cow<'static, str>>,
[src]
pub fn new<I>(kind: Kind, details: I) -> Error where
I: Into<Cow<'static, str>>,
ⓘImportant traits for Box<R>pub fn into_box(self) -> Box<StdError>
[src]
ⓘImportant traits for Box<R>
pub fn into_box(self) -> Box<StdError>
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&StdError>
[src]
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
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<SendError<Command>> for Error
[src]
impl From<SendError<Command>> for Error
impl From<Utf8Error> for Error
[src]
impl From<Utf8Error> for Error
impl<B> From<Box<B>> for Error where
B: StdError + Send + Sync + 'static,
[src]
impl<B> From<Box<B>> for Error where
B: StdError + Send + Sync + 'static,