pub struct WhateverLocal { /* private fields */ }Expand description
A basic error type that you can use as a first step to better error handling when the error does not need to cross a thread boundary.
This type behaves the same as Whatever except it does not
require that the wrapped errors implement Send or
Sync. See Whatever and whatever! for detailed
usage instructions.
Implementations§
Source§impl WhateverLocal
impl WhateverLocal
Sourcepub fn backtrace(&self) -> &Backtrace
pub fn backtrace(&self) -> &Backtrace
Gets the backtrace from the deepest Whatever or
WhateverLocal error. If none of the underlying errors
are one of these types, returns the backtrace from when this
instance was created.
Trait Implementations§
Source§impl Debug for WhateverLocal
impl Debug for WhateverLocal
Source§impl Display for WhateverLocal
impl Display for WhateverLocal
Source§impl Error for WhateverLocal
impl Error for WhateverLocal
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl ErrorCompat for WhateverLocal
impl ErrorCompat for WhateverLocal
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl FromString for WhateverLocal
impl FromString for WhateverLocal
Auto Trait Implementations§
impl !Freeze for WhateverLocal
impl !RefUnwindSafe for WhateverLocal
impl !Send for WhateverLocal
impl !Sync for WhateverLocal
impl Unpin for WhateverLocal
impl UnsafeUnpin for WhateverLocal
impl !UnwindSafe for WhateverLocal
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more