#[repr(C, packed(1))]struct RawIvhdCommon {
typ: u8,
flags: u8,
length: u16,
device_id: u16,
capability_offset: u16,
ioapic_id: u8,
_reserved: u8,
iommu_base: u64,
pci_segment: u16,
}Expand description
Common prefix of all IVHD headers (20 bytes, shared by type 0x10 and 0x11).
Fields§
§typ: u8§flags: u8§length: u16§device_id: u16§capability_offset: u16§ioapic_id: u8§_reserved: u8§iommu_base: u64§pci_segment: u16Trait Implementations§
Source§impl Clone for RawIvhdCommon
impl Clone for RawIvhdCommon
Source§fn clone(&self) -> RawIvhdCommon
fn clone(&self) -> RawIvhdCommon
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RawIvhdCommon
Source§impl Debug for RawIvhdCommon
impl Debug for RawIvhdCommon
Source§impl FromBytes for RawIvhdCommon
impl FromBytes for RawIvhdCommon
Source§impl FromZeros for RawIvhdCommon
impl FromZeros for RawIvhdCommon
Source§impl TryFromBytes for RawIvhdCommon
impl TryFromBytes for RawIvhdCommon
§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,
§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,
§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,
Auto Trait Implementations§
impl Freeze for RawIvhdCommon
impl RefUnwindSafe for RawIvhdCommon
impl Send for RawIvhdCommon
impl Sync for RawIvhdCommon
impl Unpin for RawIvhdCommon
impl UnsafeUnpin for RawIvhdCommon
impl UnwindSafe for RawIvhdCommon
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more