pub enum PciBar {
Memory {
address: u64,
size: u64,
prefetchable: bool,
is_64bit: bool,
},
Io {
address: u32,
size: u32,
},
None,
}Expand description
PCI Base Address Register
Variants§
Implementations§
Source§impl PciBar
impl PciBar
Sourcepub fn get_memory_address(&self) -> Option<u64>
pub fn get_memory_address(&self) -> Option<u64>
Get memory address if this is a memory BAR
Sourcepub fn get_io_address(&self) -> Option<u32>
pub fn get_io_address(&self) -> Option<u32>
Get I/O port address if this is an I/O BAR
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PciBar
impl RefUnwindSafe for PciBar
impl Send for PciBar
impl Sync for PciBar
impl Unpin for PciBar
impl UnwindSafe for PciBar
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)