pub struct Swage<PH: Hammering, H: Hammering, AE: Error, VE: Error> { /* private fields */ }Expand description
Main orchestrator for conducting end-to-end Rowhammer experiments.
The Swage struct combines an allocator, hammerer, and victim to execute
complete Rowhammer attack experiments with profiling, reproducibility checks,
and result collection. It manages the full lifecycle:
- Memory allocation using
ConsecAllocator - Profiling to identify vulnerable memory locations
- Reproducibility verification to filter transient bit flips
- Attack execution with hammering and victim checking
§Type Parameters
PH- Profile hammerer type (implementsHammering)H- Attack hammerer type (implementsHammering)AE- Allocator error typeVE- Victim error type
§Examples
Use Swage::builder() to construct a Swage instance with the required components.
Implementations§
Auto Trait Implementations§
impl<PH, H, AE, VE> Freeze for Swage<PH, H, AE, VE>
impl<PH, H, AE, VE> !RefUnwindSafe for Swage<PH, H, AE, VE>
impl<PH, H, AE, VE> !Send for Swage<PH, H, AE, VE>
impl<PH, H, AE, VE> !Sync for Swage<PH, H, AE, VE>
impl<PH, H, AE, VE> Unpin for Swage<PH, H, AE, VE>
impl<PH, H, AE, VE> !UnwindSafe for Swage<PH, H, AE, VE>
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> 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