pub struct ExtendedPstateState { /* private fields */ }
Implementations§
Source§impl ExtendedPstateState
impl ExtendedPstateState
Sourcepub unsafe fn run_with_saved_state<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce() -> R,
pub unsafe fn run_with_saved_state<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce() -> R,
Runs the provided function with the saved extended processor state. The provided function must be written carefully to avoid inadvertently using any extended state itself such as vector or floating point registers.
§Safety
|f| must not use any extended processor state.
pub fn with_strategy(strategy: Strategy) -> Self
pub fn reset(&mut self)
pub fn get_x64_xsave_area(&self) -> [u8; 832]
pub fn set_x64_xsave_area(&mut self, xsave_area: [u8; 832])
Trait Implementations§
Source§impl Clone for ExtendedPstateState
impl Clone for ExtendedPstateState
Source§fn clone(&self) -> ExtendedPstateState
fn clone(&self) -> ExtendedPstateState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ExtendedPstateState
impl Default for ExtendedPstateState
Source§fn default() -> ExtendedPstateState
fn default() -> ExtendedPstateState
Returns the “default value” for a type. Read more
impl Copy for ExtendedPstateState
Auto Trait Implementations§
impl Freeze for ExtendedPstateState
impl RefUnwindSafe for ExtendedPstateState
impl Send for ExtendedPstateState
impl Sync for ExtendedPstateState
impl Unpin for ExtendedPstateState
impl UnwindSafe for ExtendedPstateState
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)