#[repr(C)]pub struct kvm_segment {}
Available on x86-64 only.
Fields§
§base: __u64
§limit: __u32
§selector: __u16
§type_: __u8
§present: __u8
§dpl: __u8
§db: __u8
§s: __u8
§l: __u8
§g: __u8
§avl: __u8
§unusable: __u8
§padding: __u8
Trait Implementations§
Source§impl AsBytes for kvm_segment
impl AsBytes for kvm_segment
Source§impl Clone for kvm_segment
impl Clone for kvm_segment
Source§fn clone(&self) -> kvm_segment
fn clone(&self) -> kvm_segment
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 Debug for kvm_segment
impl Debug for kvm_segment
Source§impl Default for kvm_segment
impl Default for kvm_segment
Source§fn default() -> kvm_segment
fn default() -> kvm_segment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for kvm_segment
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for kvm_segment
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromBytes for kvm_segment
impl FromBytes for kvm_segment
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
Source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moreSource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moreSource§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moreSource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moreSource§impl FromZeroes for kvm_segment
impl FromZeroes for kvm_segment
Source§impl PartialEq for kvm_segment
impl PartialEq for kvm_segment
Source§impl Serialize for kvm_segment
Available on crate feature serde
only.
impl Serialize for kvm_segment
Available on crate feature
serde
only.impl Copy for kvm_segment
impl StructuralPartialEq for kvm_segment
Auto Trait Implementations§
impl Freeze for kvm_segment
impl RefUnwindSafe for kvm_segment
impl Send for kvm_segment
impl Sync for kvm_segment
impl Unpin for kvm_segment
impl UnwindSafe for kvm_segment
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