Struct InternalQueueContext
pub struct InternalQueueContext<'owner> { /* private fields */ }Expand description
构造内部任务队列(internal task queue)时使用的原所属域(owner domain)权限。
回调(callback)可读取所属域标识并创建该域的默认队列。这份权限随本次回调结束,
原 TaskThread 的关闭(close)、接纳(admission)与推进权限由执行器(executor)保有。
Implementations§
§impl InternalQueueContext<'_>
impl InternalQueueContext<'_>
pub fn owner_id(&self) -> TaskOwnerId
pub fn owner_id(&self) -> TaskOwnerId
读取原所属域标识。可保留标识以核对匹配关系。
pub fn task_queue(&self) -> TaskQueue
pub fn task_queue(&self) -> TaskQueue
创建原所属域的开放空 TaskQueue,由取得队列的一方持有。
Auto Trait Implementations§
impl<'owner> !RefUnwindSafe for InternalQueueContext<'owner>
impl<'owner> !Send for InternalQueueContext<'owner>
impl<'owner> !Sync for InternalQueueContext<'owner>
impl<'owner> !UnwindSafe for InternalQueueContext<'owner>
impl<'owner> Forget for InternalQueueContext<'owner>
impl<'owner> Freeze for InternalQueueContext<'owner>
impl<'owner> Move for InternalQueueContext<'owner>
impl<'owner> Unpin for InternalQueueContext<'owner>
impl<'owner> UnsafeUnpin for InternalQueueContext<'owner>
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