pub struct Entry<T: Task> { /* private fields */ }Expand description
One typed context admitted for a single native execution.
Implementations§
Source§impl<T: Task> Entry<T>
impl<T: Task> Entry<T>
Sourcepub const unsafe fn new(context: NonNull<T>) -> Self
pub const unsafe fn new(context: NonNull<T>) -> Self
§Safety
Retain the initialized context and its borrowed resources at stable addresses through discard, creation failure, or successful join. All accesses must satisfy T’s thread exclusivity contract; forgetting the handle does not release these obligations.
Auto Trait Implementations§
impl<T> !Send for Entry<T>
impl<T> !Sync for Entry<T>
impl<T> Forget for Entry<T>
impl<T> Freeze for Entry<T>
impl<T> RefUnwindSafe for Entry<T>where
NonNull<T>: RefUnwindSafe,
impl<T> Unpin for Entry<T>
impl<T> UnsafeUnpin for Entry<T>where
NonNull<T>: UnsafeUnpin,
impl<T> UnwindSafe for Entry<T>where
NonNull<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