pub struct MappingPointer {
pub address: NonNull<u8>,
pub length: usize,
}Expand description
Pointeur brut vers un mapping mémoire sans ownership RAII.
Contrairement au type Mapping de air-sys-syscall::mem, ce type ne
libère pas automatiquement la mémoire à la destruction. Il est
utilisé pour les cas avancés (mmap_fixed) où l’appelant gère
explicitement la durée de vie du mapping.
§Safety
L’appelant est responsable d’appeler munmap avec l’adresse et la
longueur correctes avant que ce type soit abandonné, ou d’utiliser
mmap_fixed pour remplacer le mapping.
Fields§
§address: NonNull<u8>Adresse de base du mapping.
length: usizeLongueur du mapping en octets.
Trait Implementations§
Source§impl Debug for MappingPointer
impl Debug for MappingPointer
impl Send for MappingPointer
impl Sync for MappingPointer
Auto Trait Implementations§
impl Freeze for MappingPointer
impl RefUnwindSafe for MappingPointer
impl Unpin for MappingPointer
impl UnsafeUnpin for MappingPointer
impl UnwindSafe for MappingPointer
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