Struct abyss::dev::pci::PciAccessor

source ·
pub struct PciAccessor { /* private fields */ }
Expand description

Access helper for Pci Device.

Implementations§

source§

impl PciAccessor

source

pub fn write_u8(&self, v: u8)

Write u8 to pci address.

source

pub fn write_u16(&self, v: u16)

Write u16 to pci address.

source

pub fn write_u32(&self, v: u32)

Write u32 to pci address.

source

pub fn read_u8(&self) -> u8

read u8 from pci address.

source

pub fn read_u16(&self) -> u16

read u16 from pci address.

source

pub fn read_u32(&self) -> u32

read u32 from pci address.

Trait Implementations§

source§

impl Debug for PciAccessor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for PciAccessor

§

impl Send for PciAccessor

§

impl Sync for PciAccessor

§

impl Unpin for PciAccessor

§

impl UnwindSafe for PciAccessor

Blanket Implementations§

§

impl<T> Any for Twhere T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

const: unstable§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.