pub struct MappedAllocation<T> {
pub allocation: T,
pub additional_owned_bytes: u64,
pub newly_mapped_bytes: u64,
}Fields§
§allocation: T§additional_owned_bytes: u64Newly created physical ownership. This is independent of mapping: retained-pool/shared handles may map bytes while adding zero ownership.
newly_mapped_bytes: u64Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MappedAllocation<T>where
T: Freeze,
impl<T> RefUnwindSafe for MappedAllocation<T>where
T: RefUnwindSafe,
impl<T> Send for MappedAllocation<T>where
T: Send,
impl<T> Sync for MappedAllocation<T>where
T: Sync,
impl<T> Unpin for MappedAllocation<T>where
T: Unpin,
impl<T> UnsafeUnpin for MappedAllocation<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for MappedAllocation<T>where
T: UnwindSafe,
Blanket Implementations§
impl<T> BindingResource for T
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