pub struct Dit { /* private fields */ }Expand description
Data-Independent Timing: support for enabling features of AArch64 CPUs which improve constant-time operation.
Implementations§
Source§impl Dit
impl Dit
Sourcepub fn enable(&self) -> Guard<'_>
pub fn enable(&self) -> Guard<'_>
Enable Data-Independent Timing (if available).
Returns an RAII guard that will return DIT to its previous state when dropped.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if DIT has been enabled.
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Check if DIT is supported by this CPU.
Auto Trait Implementations§
impl Freeze for Dit
impl RefUnwindSafe for Dit
impl Send for Dit
impl Sync for Dit
impl Unpin for Dit
impl UnsafeUnpin for Dit
impl UnwindSafe for Dit
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