Enum driver_pci::MemoryBarType
pub enum MemoryBarType {
Width32,
Below1MiB,
Width64,
}
Expand description
The location allowed for a memory BAR.
Variants§
Width32
The BAR has a 32-bit address and can be mapped anywhere in 32-bit address space.
Below1MiB
The BAR must be mapped below 1MiB.
Width64
The BAR has a 64-bit address and can be mapped anywhere in 64-bit address space.
Trait Implementations§
§impl Clone for MemoryBarType
impl Clone for MemoryBarType
§fn clone(&self) -> MemoryBarType
fn clone(&self) -> MemoryBarType
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 more§impl Debug for MemoryBarType
impl Debug for MemoryBarType
§impl PartialEq for MemoryBarType
impl PartialEq for MemoryBarType
§fn eq(&self, other: &MemoryBarType) -> bool
fn eq(&self, other: &MemoryBarType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<u8> for MemoryBarType
impl TryFrom<u8> for MemoryBarType
impl Copy for MemoryBarType
impl Eq for MemoryBarType
impl StructuralEq for MemoryBarType
impl StructuralPartialEq for MemoryBarType
Auto Trait Implementations§
impl RefUnwindSafe for MemoryBarType
impl Send for MemoryBarType
impl Sync for MemoryBarType
impl Unpin for MemoryBarType
impl UnwindSafe for MemoryBarType
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