Struct rustbreak::error::RustbreakError [−][src]
pub struct RustbreakError { /* fields omitted */ }
The main error type that gets returned for errors that happen while interacting with a
Database
.
Methods
impl RustbreakError
[src]
impl RustbreakError
pub fn kind(&self) -> RustbreakErrorKind
[src]
pub fn kind(&self) -> RustbreakErrorKind
Get the kind of this error
Trait Implementations
impl Debug for RustbreakError
[src]
impl Debug for RustbreakError
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 Fail for RustbreakError
[src]
impl Fail for RustbreakError
fn cause(&self) -> Option<&Fail>
[src]
fn cause(&self) -> Option<&Fail>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
fn compat(self) -> Compat<Self>
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
impl Display for RustbreakError
[src]
impl Display for RustbreakError
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 From<RustbreakErrorKind> for RustbreakError
[src]
impl From<RustbreakErrorKind> for RustbreakError
fn from(kind: RustbreakErrorKind) -> RustbreakError
[src]
fn from(kind: RustbreakErrorKind) -> RustbreakError
Performs the conversion.
impl From<Context<RustbreakErrorKind>> for RustbreakError
[src]
impl From<Context<RustbreakErrorKind>> for RustbreakError
fn from(inner: Context<RustbreakErrorKind>) -> RustbreakError
[src]
fn from(inner: Context<RustbreakErrorKind>) -> RustbreakError
Performs the conversion.
Auto Trait Implementations
impl Send for RustbreakError
impl Send for RustbreakError
impl Sync for RustbreakError
impl Sync for RustbreakError