pub struct SimpleBarAllocator { /* private fields */ }Implementations§
Source§impl SimpleBarAllocator
impl SimpleBarAllocator
Sourcepub fn set_mem32(
&mut self,
space: PciMem32,
prefetchable: bool,
) -> Result<(), Error>
pub fn set_mem32( &mut self, space: PciMem32, prefetchable: bool, ) -> Result<(), Error>
Convenience: add a 32-bit window with prefetchable attribute.
Sourcepub fn set_mem64(
&mut self,
space: PciMem64,
prefetchable: bool,
) -> Result<(), Error>
pub fn set_mem64( &mut self, space: PciMem64, prefetchable: bool, ) -> Result<(), Error>
Convenience: add a 64-bit window with prefetchable attribute.
pub fn alloc_memory32(&mut self, size: u32) -> Option<u32>
pub fn alloc_memory64(&mut self, size: u64) -> Option<u64>
Trait Implementations§
Source§impl Default for SimpleBarAllocator
impl Default for SimpleBarAllocator
Source§fn default() -> SimpleBarAllocator
fn default() -> SimpleBarAllocator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimpleBarAllocator
impl RefUnwindSafe for SimpleBarAllocator
impl Send for SimpleBarAllocator
impl Sync for SimpleBarAllocator
impl Unpin for SimpleBarAllocator
impl UnwindSafe for SimpleBarAllocator
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