Struct core::task::Context1.36.0[−][src]

pub struct Context<'a> { /* fields omitted */ }
Expand description

异步任务的 Context。

当前,Context 仅用于提供对可用于唤醒当前任务的 &Waker 的访问。

Implementations

从 &Waker 创建一个新的 Context。

返回当前任务的 Waker 引号。

Trait Implementations

使用给定的格式化程序格式化该值。 Read more

Auto Trait Implementations

Blanket Implementations

获取 self 的 TypeId。 Read more

从拥有的值中一成不变地借用。 Read more

从拥有的值中借用。 Read more

执行转换。

执行转换。

发生转换错误时返回的类型。

执行转换。

发生转换错误时返回的类型。

执行转换。