pub struct MemoryHandleInfo {
pub handle: MemoryHandle,
pub size: usize,
pub device: Device,
pub alignment: usize,
pub allocated_at: Instant,
pub is_mapped: bool,
pub memory_type: MemoryType,
}Expand description
Information about a memory handle
Fields§
§handle: MemoryHandleMemory handle
size: usizeSize in bytes
device: DeviceDevice where memory is allocated
alignment: usizeMemory alignment
allocated_at: InstantAllocation timestamp
is_mapped: boolWhether memory is currently mapped
memory_type: MemoryTypeMemory type/usage hint
Trait Implementations§
Source§impl Clone for MemoryHandleInfo
impl Clone for MemoryHandleInfo
Source§fn clone(&self) -> MemoryHandleInfo
fn clone(&self) -> MemoryHandleInfo
Returns a duplicate 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 MemoryHandleInfo
impl RefUnwindSafe for MemoryHandleInfo
impl Send for MemoryHandleInfo
impl Sync for MemoryHandleInfo
impl Unpin for MemoryHandleInfo
impl UnsafeUnpin for MemoryHandleInfo
impl UnwindSafe for MemoryHandleInfo
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