pub struct LapicSnapshot {Show 21 fields
pub id: u32,
pub tpr: u32,
pub svr: u32,
pub isr: [u32; 8],
pub irr: [u32; 8],
pub tmr: [u32; 8],
pub lvt_timer_raw: u32,
pub lvt_thermal_raw: u32,
pub lvt_perfmon_raw: u32,
pub lvt_lint0_raw: u32,
pub lvt_lint1_raw: u32,
pub lvt_error_raw: u32,
pub timer_initial_count: u32,
pub timer_current_count: u32,
pub timer_divide_config: u32,
pub tsc_deadline: u64,
pub icr_low: u32,
pub icr_high: u32,
pub ldr: u32,
pub dfr: u32,
pub enabled: bool,
}Expand description
Serialized LAPIC state for snapshot
Fields§
§id: u32§tpr: u32§svr: u32§isr: [u32; 8]§irr: [u32; 8]§tmr: [u32; 8]§lvt_timer_raw: u32§lvt_thermal_raw: u32§lvt_perfmon_raw: u32§lvt_lint0_raw: u32§lvt_lint1_raw: u32§lvt_error_raw: u32§timer_initial_count: u32§timer_current_count: u32§timer_divide_config: u32§tsc_deadline: u64§icr_low: u32§icr_high: u32§ldr: u32§dfr: u32§enabled: boolImplementations§
Source§impl LapicSnapshot
impl LapicSnapshot
pub fn from_lapic(lapic: &VirtualLapic) -> Self
Sourcepub fn restore_to_lapic(&self, lapic: &mut VirtualLapic)
pub fn restore_to_lapic(&self, lapic: &mut VirtualLapic)
Restore LAPIC from snapshot
Trait Implementations§
Source§impl Clone for LapicSnapshot
impl Clone for LapicSnapshot
Source§fn clone(&self) -> LapicSnapshot
fn clone(&self) -> LapicSnapshot
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LapicSnapshot
impl RefUnwindSafe for LapicSnapshot
impl Send for LapicSnapshot
impl Sync for LapicSnapshot
impl Unpin for LapicSnapshot
impl UnwindSafe for LapicSnapshot
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)