Struct tokio::util::ptr_expose::PtrExposeDomain
source · pub(crate) struct PtrExposeDomain<T> {
_phantom: PhantomData<T>,
}
Fields§
§_phantom: PhantomData<T>
Implementations§
source§impl<T> PtrExposeDomain<T>
impl<T> PtrExposeDomain<T>
pub(crate) const fn new() -> Self
pub(crate) fn expose_provenance(&self, ptr: *const T) -> usize
pub(crate) fn from_exposed_addr(&self, addr: usize) -> *const T
pub(crate) fn unexpose_provenance(&self, _ptr: *const T)
Trait Implementations§
impl<T> Sync for PtrExposeDomain<T>
Auto Trait Implementations§
impl<T> Freeze for PtrExposeDomain<T>
impl<T> RefUnwindSafe for PtrExposeDomain<T>where
T: RefUnwindSafe,
impl<T> Send for PtrExposeDomain<T>where
T: Send,
impl<T> Unpin for PtrExposeDomain<T>where
T: Unpin,
impl<T> UnwindSafe for PtrExposeDomain<T>where
T: UnwindSafe,
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