#[repr(C, align(4))]pub struct PciAddress {
pub bus: u8,
pub device: u8,
pub function: u8,
pub _reserved: u8,
}Fields§
§bus: u8§device: u8§function: u8§_reserved: u8Trait Implementations§
Source§impl Clone for PciAddress
impl Clone for PciAddress
Source§fn clone(&self) -> PciAddress
fn clone(&self) -> PciAddress
Returns a duplicate 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 PciAddress
impl Debug for PciAddress
Source§impl FromBytes for PciAddresswhere
u8: FromBytes,
impl FromBytes for PciAddresswhere
u8: FromBytes,
Source§impl FromZeros for PciAddresswhere
u8: FromZeros,
impl FromZeros for PciAddresswhere
u8: FromZeros,
Source§impl IntoBytes for PciAddress
impl IntoBytes for PciAddress
§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§impl TryFromBytes for PciAddresswhere
u8: TryFromBytes,
impl TryFromBytes for PciAddresswhere
u8: TryFromBytes,
§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,
impl Copy for PciAddress
Auto Trait Implementations§
impl Freeze for PciAddress
impl RefUnwindSafe for PciAddress
impl Send for PciAddress
impl Sync for PciAddress
impl Unpin for PciAddress
impl UnsafeUnpin for PciAddress
impl UnwindSafe for PciAddress
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