struct VfioResourceAllocator {
regions: BTreeSet<AddressRange>,
}Fields§
§regions: BTreeSet<AddressRange>Implementations§
Source§impl VfioResourceAllocator
impl VfioResourceAllocator
fn new(pool: AddressRange) -> Result<Self, PciDeviceError>
fn internal_allocate_from_slot( &mut self, slot: AddressRange, range: AddressRange, ) -> Result<u64, PciDeviceError>
fn allocate_with_align( &mut self, size: u64, alignment: u64, ) -> Result<u64, PciDeviceError>
fn allocate_at_can_overlap( &mut self, range: AddressRange, ) -> Result<(), PciDeviceError>
Auto Trait Implementations§
impl Freeze for VfioResourceAllocator
impl RefUnwindSafe for VfioResourceAllocator
impl Send for VfioResourceAllocator
impl Sync for VfioResourceAllocator
impl Unpin for VfioResourceAllocator
impl UnwindSafe for VfioResourceAllocator
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