Struct QueueEntry
pub struct QueueEntry { /* private fields */ }Expand description
嵌入任务存储(task allocation)的本地链节点;不单独堆分配。
队列持有的Runnable暂存于ticket;这是一份有明确进出责任的自引用持有, 出队或队列析构(drop)必须取回它。普通控制句柄不能访问此槽或链接。
Implementations§
§impl QueueEntry
impl QueueEntry
pub unsafe fn link_from_node(node: NonNull<Self>) -> NonNull<LinkedListLink>
pub unsafe fn link_from_node(node: NonNull<Self>) -> NonNull<LinkedListLink>
§impl QueueEntry
impl QueueEntry
pub unsafe fn node_from_link(link: NonNull<LinkedListLink>) -> NonNull<Self>
pub unsafe fn node_from_link(link: NonNull<LinkedListLink>) -> NonNull<Self>
§impl QueueEntry
impl QueueEntry
§impl QueueEntry
impl QueueEntry
pub unsafe fn take(node: NonNull<Self>, owner: TaskOwnerId) -> Runnable
pub unsafe fn take(node: NonNull<Self>, owner: TaskOwnerId) -> Runnable
Auto Trait Implementations§
impl !Freeze for QueueEntry
impl !RefUnwindSafe for QueueEntry
impl !Sync for QueueEntry
impl !UnwindSafe for QueueEntry
impl Forget for QueueEntry
impl Move for QueueEntry
impl Send for QueueEntry
impl Unpin for QueueEntry
impl UnsafeUnpin for QueueEntry
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