pub struct GuestRegionRaw<B = ()> { /* private fields */ }
Expand description

Guest memory region for virtio-fs DAX window.

Implementations

Create a GuestRegionRaw object from raw pointer.

Safety

Caller needs to ensure addr and size are valid with static lifetime.

Trait Implementations

Associated error codes
Writes a slice into the container at addr. Read more
Reads data from the container at addr into a slice. Read more
Writes the entire content of a slice into the container at addr. Read more
Reads data from the container at addr to fill an entire slice. Read more
Reads up to count bytes from an object and writes them into the container at addr. Read more
Reads exactly count bytes from an object and writes them into the container at addr. Read more
Reads up to count bytes from the container at addr and writes them it into an object. Read more
Reads exactly count bytes from the container at addr and writes them into an object. Read more
Atomically store a value at the specified address.
Atomically load a value from the specified address.
Writes an object into the container at addr. Read more
Reads an object from the container at addr. Read more
Formats the value using the given formatter. Read more
Type used for dirty memory tracking.
Returns the size of the region.
Returns the minimum (inclusive) address managed by the region.
Borrow the associated Bitmap object.
Returns the host virtual address corresponding to the region address. Read more
Returns information regarding the file and offset backing this memory region.
Returns a slice corresponding to the data in the region. Read more
Returns a mutable slice corresponding to the data in the region. Read more
Returns a VolatileSlice of count bytes starting at offset. Read more
Show if the region is based on the HugeTLBFS. Returns Some(true) if the region is backed by hugetlbfs. None represents that no information is available. Read more
Returns the maximum (inclusive) address managed by the region.
Returns the given address if it is within this region.
Returns true if the given address is within this region.
Returns the address plus the offset if it is in this region.
Tries to convert an absolute address to a relative address within this region. Read more
Gets a slice of memory for the entire region that supports volatile access. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.