Skip to main content

PciCommand

Struct PciCommand 

Source
pub struct PciCommand(/* private fields */);

Implementations§

Source§

impl PciCommand

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u16) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u16

Convert into bits.

Source

pub const fn io(&self) -> bool

Bits: 0..1

Source

pub const fn with_io_checked(self, value: bool) -> Result<Self, ()>

Bits: 0..1

Source

pub const fn with_io(self, value: bool) -> Self

Bits: 0..1

Source

pub const fn set_io(&mut self, value: bool)

Bits: 0..1

Source

pub const fn set_io_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 0..1

Source

pub const fn memory(&self) -> bool

Bits: 1..2

Source

pub const fn with_memory_checked(self, value: bool) -> Result<Self, ()>

Bits: 1..2

Source

pub const fn with_memory(self, value: bool) -> Self

Bits: 1..2

Source

pub const fn set_memory(&mut self, value: bool)

Bits: 1..2

Source

pub const fn set_memory_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 1..2

Source

pub const fn master(&self) -> bool

Bits: 2..3

Source

pub const fn with_master_checked(self, value: bool) -> Result<Self, ()>

Bits: 2..3

Source

pub const fn with_master(self, value: bool) -> Self

Bits: 2..3

Source

pub const fn set_master(&mut self, value: bool)

Bits: 2..3

Source

pub const fn set_master_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 2..3

Source

pub const fn special(&self) -> bool

Bits: 3..4

Source

pub const fn with_special_checked(self, value: bool) -> Result<Self, ()>

Bits: 3..4

Source

pub const fn with_special(self, value: bool) -> Self

Bits: 3..4

Source

pub const fn set_special(&mut self, value: bool)

Bits: 3..4

Source

pub const fn set_special_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 3..4

Source

pub const fn invalidate(&self) -> bool

Bits: 4..5

Source

pub const fn with_invalidate_checked(self, value: bool) -> Result<Self, ()>

Bits: 4..5

Source

pub const fn with_invalidate(self, value: bool) -> Self

Bits: 4..5

Source

pub const fn set_invalidate(&mut self, value: bool)

Bits: 4..5

Source

pub const fn set_invalidate_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 4..5

Source

pub const fn vga_palette(&self) -> bool

Bits: 5..6

Source

pub const fn with_vga_palette_checked(self, value: bool) -> Result<Self, ()>

Bits: 5..6

Source

pub const fn with_vga_palette(self, value: bool) -> Self

Bits: 5..6

Source

pub const fn set_vga_palette(&mut self, value: bool)

Bits: 5..6

Source

pub const fn set_vga_palette_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 5..6

Source

pub const fn parity(&self) -> bool

Bits: 6..7

Source

pub const fn with_parity_checked(self, value: bool) -> Result<Self, ()>

Bits: 6..7

Source

pub const fn with_parity(self, value: bool) -> Self

Bits: 6..7

Source

pub const fn set_parity(&mut self, value: bool)

Bits: 6..7

Source

pub const fn set_parity_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 6..7

Source

pub const fn wait(&self) -> bool

Bits: 7..8

Source

pub const fn with_wait_checked(self, value: bool) -> Result<Self, ()>

Bits: 7..8

Source

pub const fn with_wait(self, value: bool) -> Self

Bits: 7..8

Source

pub const fn set_wait(&mut self, value: bool)

Bits: 7..8

Source

pub const fn set_wait_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 7..8

Source

pub const fn serr(&self) -> bool

Bits: 8..9

Source

pub const fn with_serr_checked(self, value: bool) -> Result<Self, ()>

Bits: 8..9

Source

pub const fn with_serr(self, value: bool) -> Self

Bits: 8..9

Source

pub const fn set_serr(&mut self, value: bool)

Bits: 8..9

Source

pub const fn set_serr_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 8..9

Source

pub const fn fast_back(&self) -> bool

Bits: 9..10

Source

pub const fn with_fast_back_checked(self, value: bool) -> Result<Self, ()>

Bits: 9..10

Source

pub const fn with_fast_back(self, value: bool) -> Self

Bits: 9..10

Source

pub const fn set_fast_back(&mut self, value: bool)

Bits: 9..10

Source

pub const fn set_fast_back_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 9..10

Source

pub const fn intx_disable(&self) -> bool

Bits: 10..11

Source

pub const fn with_intx_disable_checked(self, value: bool) -> Result<Self, ()>

Bits: 10..11

Source

pub const fn with_intx_disable(self, value: bool) -> Self

Bits: 10..11

Source

pub const fn set_intx_disable(&mut self, value: bool)

Bits: 10..11

Source

pub const fn set_intx_disable_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 10..11

Trait Implementations§

Source§

impl Clone for PciCommand

Source§

fn clone(&self) -> PciCommand

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PciCommand

Source§

impl Debug for PciCommand

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for PciCommand

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for PciCommand

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<PciCommand> for u16

Source§

fn from(v: PciCommand) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for PciCommand

Source§

fn from(v: u16) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.