pub struct ConstructError {
pub type_name: &'static str,
pub detail: String,
}Expand description
Errors surfaced by ConstructFn.
Fields§
§type_name: &'static strTYPE_NAME of the concrete being constructed.
detail: StringDowncast miss or T::new error stringified.
Trait Implementations§
Source§impl Debug for ConstructError
impl Debug for ConstructError
Source§impl Display for ConstructError
impl Display for ConstructError
Source§impl Error for ConstructError
impl Error for ConstructError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for ConstructError
impl RefUnwindSafe for ConstructError
impl Send for ConstructError
impl Sync for ConstructError
impl Unpin for ConstructError
impl UnsafeUnpin for ConstructError
impl UnwindSafe for ConstructError
Blanket Implementations§
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