Struct seed_riscv::pci::HostMemoryRange
source · struct HostMemoryRange {
space: AddressSpace,
address: PciAddress,
reg: u8,
cpu_base: usize,
cpu_size: usize,
offset: usize,
}
Fields§
§space: AddressSpace
§address: PciAddress
§reg: u8
§cpu_base: usize
§cpu_size: usize
§offset: usize
Implementations§
source§impl HostMemoryRange
impl HostMemoryRange
pub fn new( space: AddressSpace, address: PciAddress, reg: u8, cpu_base: usize, cpu_size: usize ) -> HostMemoryRange
pub fn allocate(&mut self, size: usize, alignment: usize) -> Option<usize>
Trait Implementations§
source§impl Clone for HostMemoryRange
impl Clone for HostMemoryRange
source§fn clone(&self) -> HostMemoryRange
fn clone(&self) -> HostMemoryRange
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 moreAuto Trait Implementations§
impl Freeze for HostMemoryRange
impl RefUnwindSafe for HostMemoryRange
impl Send for HostMemoryRange
impl Sync for HostMemoryRange
impl Unpin for HostMemoryRange
impl UnwindSafe for HostMemoryRange
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