Struct blunder::Blunder
[−]
[src]
pub struct Blunder<T: StdError> { /* fields omitted */ }
Generic af struct for errror handling Designed to host anything that implements error::Error trait Yet can host whatever (like errno from libc)
Methods
impl<T: StdError> Blunder<T>
[src]
fn detail(&self) -> Option<String>
Optional reasoning behind such behavior. Think "Client doesn't understand XXX cipher"
Trait Implementations
impl<T: Debug + StdError> Debug for Blunder<T>
[src]
impl<T: PartialEq + StdError> PartialEq for Blunder<T>
[src]
fn eq(&self, __arg_0: &Blunder<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Blunder<T>) -> bool
This method tests for !=
.
impl<T: StdError> Deref for Blunder<T>
[src]
Because we want easy switch/case on kind...
type Target = T
The resulting type after dereferencing
fn deref<'a>(&'a self) -> &'a T
The method called to dereference a value
impl<T: StdError> StdError for Blunder<T>
[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