pub struct BitFlip {
pub addr: usize,
pub bitmask: u8,
pub data: u8,
}Expand description
Represents a bit flip detected in memory.
A bit flip is a change in memory where one or more bits differ from their expected value. This is the primary indicator of a successful Rowhammer attack.
Fields§
§addr: usizeVirtual address where the bit flip occurred
bitmask: u8Bitmask indicating which bits flipped (1 = bit flipped)
data: u8The expected data value (before the flip)
Implementations§
Source§impl BitFlip
impl BitFlip
Sourcepub fn flip_direction(&self) -> FlipDirection
pub fn flip_direction(&self) -> FlipDirection
Calculate the FlipDirection (1->0 or 0->1 or Multiple) observed in this BitFlip
Trait Implementations§
impl Copy for BitFlip
impl Eq for BitFlip
impl StructuralPartialEq for BitFlip
Auto Trait Implementations§
impl Freeze for BitFlip
impl RefUnwindSafe for BitFlip
impl Send for BitFlip
impl Sync for BitFlip
impl Unpin for BitFlip
impl UnwindSafe for BitFlip
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more