pub struct Error<S = ()> { /* private fields */ }Implementations§
source§impl<S> Error<S>
impl<S> Error<S>
pub fn name(&self) -> Cow<'_, str>
pub fn summary(&self) -> Option<Cow<'_, str>>
pub fn human(&self) -> Option<String>
pub fn detail(&self) -> Option<Cow<'_, str>>
pub fn inner(&self) -> SmallVec<[&Error; 1]> ⓘ
pub fn into_scope<T>(self) -> Error<T>
pub fn as_scope<T>(&self) -> &Error<T>
pub fn back_cast<T>(self) -> Result<T, Self>where T: Send + Sync + 'static,
pub fn back_cast_ref<T>(&self) -> Option<&T>where T: Send + Sync + 'static,
pub fn is_name_of<T>(&self) -> boolwhere T: Send + Sync + Default + 'static, S: Scope,
pub fn name_of<T>() -> Option<String>where T: Send + Sync + Default + 'static, S: Scope,
Trait Implementations§
source§impl<'a, X> Deserialize<'a> for Error<X>
impl<'a, X> Deserialize<'a> for Error<X>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S> Error for Error<S>
impl<S> Error for Error<S>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()