pub struct DynTracerError {
error: Box<dyn ErrorDebug>,
type_name: Option<String>,
info: ErrorTracerExtInfo,
cause: Option<Vec<DynTracerError>>,
}Expand description
DynTracerError:
Fields§
§error: Box<dyn ErrorDebug>§type_name: Option<String>§info: ErrorTracerExtInfo§cause: Option<Vec<DynTracerError>>Implementations§
Source§impl DynTracerError
impl DynTracerError
pub fn err_to_string(&self) -> String
Source§impl DynTracerError
impl DynTracerError
pub fn new<T: 'static + ErrorDebug>( error: Box<T>, info: ErrorTracerExtInfo, cause: Option<Vec<DynTracerError>>, ) -> Self
pub fn kind(&self) -> &Box<dyn ErrorDebug>
pub fn cause(&self) -> Option<&Vec<DynTracerError>>
pub fn cause_mut(&mut self) -> Option<&mut Vec<DynTracerError>>
pub fn downcast_ref<T: ErrorDebug + AnyBoxError>(&self) -> Option<&T>
pub fn digest(&self) -> ErrorDigest
Trait Implementations§
Source§impl Debug for DynTracerError
impl Debug for DynTracerError
Source§impl<'de> Deserialize<'de> for DynTracerError
impl<'de> Deserialize<'de> for DynTracerError
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DynTracerError
impl Display for DynTracerError
Source§impl<T> From<(T, ErrorTracerExtInfo)> for DynTracerErrorwhere
T: 'static + ErrorDebug,
impl<T> From<(T, ErrorTracerExtInfo)> for DynTracerErrorwhere
T: 'static + ErrorDebug,
Source§fn from((err, info): (T, ErrorTracerExtInfo)) -> Self
fn from((err, info): (T, ErrorTracerExtInfo)) -> Self
Converts to this type from the input type.
Source§impl From<DynTracerError> for Error
impl From<DynTracerError> for Error
Source§fn from(e: DynTracerError) -> Self
fn from(e: DynTracerError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TracerError<T>> for DynTracerErrorwhere
T: ErrorDebug,
impl<T> From<TracerError<T>> for DynTracerErrorwhere
T: ErrorDebug,
Source§fn from(err: TracerError<T>) -> Self
fn from(err: TracerError<T>) -> Self
Converts to this type from the input type.
Source§impl Serialize for DynTracerError
impl Serialize for DynTracerError
impl Send for DynTracerError
impl Sync for DynTracerError
Auto Trait Implementations§
impl Freeze for DynTracerError
impl !RefUnwindSafe for DynTracerError
impl Unpin for DynTracerError
impl !UnwindSafe for DynTracerError
Blanket Implementations§
Source§impl<T> AnyBoxError for Twhere
T: ErrorDebug,
impl<T> AnyBoxError for Twhere
T: ErrorDebug,
Source§impl<T> AnyMutBoxError for Twhere
T: ErrorDebug,
impl<T> AnyMutBoxError for Twhere
T: ErrorDebug,
fn as_any_mut(&mut self) -> Box<&mut (dyn Any + 'static)>
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
Source§impl<T> ErrorDebug for T
impl<T> ErrorDebug for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> SimpleEncoder for Twhere
T: Serialize,
impl<T> SimpleEncoder for Twhere
T: Serialize,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.