pub struct ThreadExtensionBorrow<'thread> { /* private fields */ }Expand description
Extension identity borrowed for exactly as long as a strong thread handle.
This wrapper deliberately does not expose its copyable internal view. The strong handle borrowed by the wrapper prevents the registry reaper from destroying the extension while its opaque data is being inspected.
Implementations§
Source§impl<'thread> ThreadExtensionBorrow<'thread>
impl<'thread> ThreadExtensionBorrow<'thread>
Trait Implementations§
Auto Trait Implementations§
impl<'thread> !RefUnwindSafe for ThreadExtensionBorrow<'thread>
impl<'thread> !UnwindSafe for ThreadExtensionBorrow<'thread>
impl<'thread> Freeze for ThreadExtensionBorrow<'thread>
impl<'thread> Send for ThreadExtensionBorrow<'thread>
impl<'thread> Sync for ThreadExtensionBorrow<'thread>
impl<'thread> Unpin for ThreadExtensionBorrow<'thread>
impl<'thread> UnsafeUnpin for ThreadExtensionBorrow<'thread>
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