#[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 Clone for kvm_segment
impl Clone for kvm_segment
Source§fn clone(&self) -> kvm_segment
fn clone(&self) -> kvm_segment
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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§impl FromZeros for kvm_segment
impl FromZeros for kvm_segment
Source§impl IntoBytes for kvm_segment
impl IntoBytes for kvm_segment
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
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.Source§impl TryFromBytes for kvm_segment
impl TryFromBytes for kvm_segment
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for kvm_segment
impl Immutable 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