#[repr(C)]
pub struct kvm_sregs {
pub cs: kvm_segment,
pub ds: kvm_segment,
pub es: kvm_segment,
pub fs: kvm_segment,
pub gs: kvm_segment,
pub ss: kvm_segment,
pub tr: kvm_segment,
pub ldt: kvm_segment,
pub gdt: kvm_dtable,
pub idt: kvm_dtable,
pub cr0: __u64,
pub cr2: __u64,
pub cr3: __u64,
pub cr4: __u64,
pub cr8: __u64,
pub efer: __u64,
pub apic_base: __u64,
pub interrupt_bitmap: [__u64; 4],
}
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static