#[repr(C)]pub struct ViolationSlot {
pub seq: AtomicU32,
pub rule: AtomicU32,
pub fqn_hash: AtomicU32,
pub measured: AtomicU32,
pub declared: AtomicU32,
pub fqn_addr: AtomicU32,
pub fqn_len: AtomicU32,
}Expand description
One slot of the SWD record. Every field is a u32 on every target, so the
layout is the same on a 32-bit board and a 64-bit host.
Fields§
§seq: AtomicU321-based sequence number of the violation in this slot, 0 = empty.
Written LAST (zeroed first), so a reader that sees a non-zero seq
twice around a read of the other words has a whole entry.
rule: AtomicU32§fqn_hash: AtomicU32fqn_hash of the endpoint ref.
measured: AtomicU32§declared: AtomicU32§fqn_addr: AtomicU32Address of the endpoint ref’s bytes (exact on a 32-bit target, the low half of it on a 64-bit host) and its length: the text is in the image’s rodata, so a reader with the ELF can print the name.
fqn_len: AtomicU32Implementations§
Source§impl ViolationSlot
impl ViolationSlot
Trait Implementations§
Source§impl Debug for ViolationSlot
impl Debug for ViolationSlot
Auto Trait Implementations§
impl !Freeze for ViolationSlot
impl RefUnwindSafe for ViolationSlot
impl Send for ViolationSlot
impl Sync for ViolationSlot
impl Unpin for ViolationSlot
impl UnsafeUnpin for ViolationSlot
impl UnwindSafe for ViolationSlot
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