Skip to main content

InternalQueueContext

Struct InternalQueueContext 

pub struct InternalQueueContext<'owner> { /* private fields */ }
Expand description

构造内部任务队列(internal task queue)时使用的原所属域(owner domain)权限。

回调(callback)可读取所属域标识并创建该域的默认队列。这份权限随本次回调结束, 原 TaskThread 的关闭(close)、接纳(admission)与推进权限由执行器(executor)保有。

Implementations§

§

impl InternalQueueContext<'_>

pub fn owner_id(&self) -> TaskOwnerId

读取原所属域标识。可保留标识以核对匹配关系。

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.