pub struct FaultInfo {
pub task_id: Option<usize>,
pub kind: FaultKind,
pub address: usize,
pub pc: usize,
}Expand description
Everything needed to attribute and report a fault.
Fields§
§task_id: Option<usize>The preemptive task that was running, if any.
kind: FaultKind§address: usizeFaulting address (mtval / MMFAR); 0 when not applicable.
pc: usizePC at the fault (mepc / stacked PC); 0 when not applicable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaultInfo
impl RefUnwindSafe for FaultInfo
impl Send for FaultInfo
impl Sync for FaultInfo
impl Unpin for FaultInfo
impl UnsafeUnpin for FaultInfo
impl UnwindSafe for FaultInfo
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