pub struct DeviceBars { /* private fields */ }
Expand description
Container type that describes a device’s available BARs
Implementations§
Source§impl DeviceBars
impl DeviceBars
Sourcepub fn new() -> DeviceBars
pub fn new() -> DeviceBars
Create a new instance of DeviceBars
Sourcepub fn bar0(self, len: u64, memory: BarMemoryKind) -> Self
pub fn bar0(self, len: u64, memory: BarMemoryKind) -> Self
Set BAR0
Sourcepub fn bar2(self, len: u64, memory: BarMemoryKind) -> Self
pub fn bar2(self, len: u64, memory: BarMemoryKind) -> Self
Set BAR2
Sourcepub fn bar4(self, len: u64, memory: BarMemoryKind) -> Self
pub fn bar4(self, len: u64, memory: BarMemoryKind) -> Self
Set BAR4
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceBars
impl !RefUnwindSafe for DeviceBars
impl Send for DeviceBars
impl Sync for DeviceBars
impl Unpin for DeviceBars
impl !UnwindSafe for DeviceBars
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