[−][src]Enum problem::Problem
Error type that is not supposed to be handled but reported, panicked on or ignored
Variants
Cause(String, Option<String>)
Context(String, Box<Problem>)
Methods
impl Problem
[src]
pub fn cause(
msg: impl ToString
) -> Problem
[src]
msg: impl ToString
) -> Problem
Create Problem
from any type implementing ToString
or Display
pub fn from_error(error: &dyn Error) -> Problem
[src]
Create Problem
from type implement Error
so that Error::cause
is followed through
pub fn while_context(
self,
msg: impl ToString
) -> Problem
[src]
self,
msg: impl ToString
) -> Problem
Add context information to this Problem
instance
pub fn backtrace(&self) -> Option<&str>
[src]
Get backtrace associated with this Problem
instance if available
Trait Implementations
impl<E> From<E> for Problem where
E: Error,
[src]
E: Error,
Every type implementing Error trait can implicitly be converted to Problem via ? operator
impl Debug for Problem
[src]
impl Display for Problem
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToProblem for T where
T: ToString,
[src]
T: ToString,
fn to_problem(Self) -> Problem
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,