struct BugRepr {
message: String,
location: &'static Location<'static>,
backtrace: Captured,
source: Option<Arc<dyn Error + Send + Sync + 'static>>,
kind: ErrorKind,
}
Expand description
Internal error (a bug)
Fields§
§message: String
Message, usually from internal!() like format!
location: &'static Location<'static>
File and line number
backtrace: Captured
Backtrace, perhaps
source: Option<Arc<dyn Error + Send + Sync + 'static>>
Source, perhaps
kind: ErrorKind
Kind
Internal
or BadApiUsage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BugRepr
impl !RefUnwindSafe for BugRepr
impl Send for BugRepr
impl Sync for BugRepr
impl Unpin for BugRepr
impl !UnwindSafe for BugRepr
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