pub struct PciCommand(/* private fields */);Implementations§
Source§impl PciCommand
impl PciCommand
Sourcepub const fn with_io_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_io_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_memory_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_memory_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_memory(self, value: bool) -> Self
pub const fn with_memory(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_memory(&mut self, value: bool)
pub const fn set_memory(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn with_master_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_master_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_master(self, value: bool) -> Self
pub const fn with_master(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_master(&mut self, value: bool)
pub const fn set_master(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn with_special_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_special_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_special(self, value: bool) -> Self
pub const fn with_special(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_special(&mut self, value: bool)
pub const fn set_special(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn invalidate(&self) -> bool
pub const fn invalidate(&self) -> bool
Bits: 4..5
Sourcepub const fn with_invalidate_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_invalidate_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_invalidate(self, value: bool) -> Self
pub const fn with_invalidate(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_invalidate(&mut self, value: bool)
pub const fn set_invalidate(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn vga_palette(&self) -> bool
pub const fn vga_palette(&self) -> bool
Bits: 5..6
Sourcepub const fn with_vga_palette_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vga_palette_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_vga_palette(self, value: bool) -> Self
pub const fn with_vga_palette(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_vga_palette(&mut self, value: bool)
pub const fn set_vga_palette(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn with_parity_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_parity_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_parity(self, value: bool) -> Self
pub const fn with_parity(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_parity(&mut self, value: bool)
pub const fn set_parity(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn with_wait_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_wait_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_serr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_serr_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_fast_back_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_fast_back_checked(self, value: bool) -> Result<Self, ()>
Bits: 9..10
Sourcepub const fn with_fast_back(self, value: bool) -> Self
pub const fn with_fast_back(self, value: bool) -> Self
Bits: 9..10
Sourcepub const fn set_fast_back(&mut self, value: bool)
pub const fn set_fast_back(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn intx_disable(&self) -> bool
pub const fn intx_disable(&self) -> bool
Bits: 10..11
Sourcepub const fn with_intx_disable_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_intx_disable_checked(self, value: bool) -> Result<Self, ()>
Bits: 10..11
Sourcepub const fn with_intx_disable(self, value: bool) -> Self
pub const fn with_intx_disable(self, value: bool) -> Self
Bits: 10..11
Sourcepub const fn set_intx_disable(&mut self, value: bool)
pub const fn set_intx_disable(&mut self, value: bool)
Bits: 10..11
Trait Implementations§
Source§impl Clone for PciCommand
impl Clone for PciCommand
Source§fn clone(&self) -> PciCommand
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PciCommand
Source§impl Debug for PciCommand
impl Debug for PciCommand
Source§impl Default for PciCommand
impl Default for PciCommand
Source§impl Display for PciCommand
impl Display for PciCommand
Source§impl From<PciCommand> for u16
impl From<PciCommand> for u16
Source§fn from(v: PciCommand) -> Self
fn from(v: PciCommand) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PciCommand
impl RefUnwindSafe for PciCommand
impl Send for PciCommand
impl Sync for PciCommand
impl Unpin for PciCommand
impl UnsafeUnpin for PciCommand
impl UnwindSafe for PciCommand
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