pub struct BarEncodingBits(/* private fields */);
Expand description
BAR in-band encoding bits.
The low bits of the BAR are not actually part of the address. Instead, they are used to in-band encode various bits of metadata about the BAR, and are masked off when determining the actual address.
Implementations§
Source§impl BarEncodingBits
impl BarEncodingBits
Sourcepub const fn with_use_pio_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_use_pio_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_use_pio(self, value: bool) -> Self
pub const fn with_use_pio(self, value: bool) -> Self
Bits: 0..1
Sourcepub const fn set_use_pio(&mut self, value: bool)
pub const fn set_use_pio(&mut self, value: bool)
Bits: 0..1
Sourcepub const fn type_64_bit(&self) -> bool
pub const fn type_64_bit(&self) -> bool
False indicates 32 bit. Only used in MMIO
Bits: 2..3
Sourcepub const fn with_type_64_bit_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_type_64_bit_checked(self, value: bool) -> Result<Self, ()>
False indicates 32 bit. Only used in MMIO
Bits: 2..3
Sourcepub const fn with_type_64_bit(self, value: bool) -> Self
pub const fn with_type_64_bit(self, value: bool) -> Self
False indicates 32 bit. Only used in MMIO
Bits: 2..3
Sourcepub const fn set_type_64_bit(&mut self, value: bool)
pub const fn set_type_64_bit(&mut self, value: bool)
False indicates 32 bit. Only used in MMIO
Bits: 2..3
Sourcepub const fn set_type_64_bit_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_type_64_bit_checked(&mut self, value: bool) -> Result<(), ()>
False indicates 32 bit. Only used in MMIO
Bits: 2..3
Sourcepub const fn prefetchable(&self) -> bool
pub const fn prefetchable(&self) -> bool
Bits: 3..4
Sourcepub const fn with_prefetchable_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_prefetchable_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_prefetchable(self, value: bool) -> Self
pub const fn with_prefetchable(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_prefetchable(&mut self, value: bool)
pub const fn set_prefetchable(&mut self, value: bool)
Bits: 3..4
Trait Implementations§
Source§impl Clone for BarEncodingBits
impl Clone for BarEncodingBits
Source§fn clone(&self) -> BarEncodingBits
fn clone(&self) -> BarEncodingBits
Returns a copy 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 BarEncodingBits
impl Debug for BarEncodingBits
Source§impl Default for BarEncodingBits
impl Default for BarEncodingBits
Source§impl From<BarEncodingBits> for u32
impl From<BarEncodingBits> for u32
Source§fn from(v: BarEncodingBits) -> u32
fn from(v: BarEncodingBits) -> u32
Converts to this type from the input type.
Source§impl From<u32> for BarEncodingBits
impl From<u32> for BarEncodingBits
impl Copy for BarEncodingBits
Auto Trait Implementations§
impl Freeze for BarEncodingBits
impl RefUnwindSafe for BarEncodingBits
impl Send for BarEncodingBits
impl Sync for BarEncodingBits
impl Unpin for BarEncodingBits
impl UnwindSafe for BarEncodingBits
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