Struct std::future::Pending1.48.0[−][src]

#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct Pending<T> { /* fields omitted */ }
Expand description

创建一个永不解析的 future,表示永不结束的计算。

该 struct 由 pending() 创建。有关更多信息,请参见其文档。

Trait Implementations

返回值的副本。 Read more

从 source 执行复制分配。 Read more

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

完成时产生的值类型。

尝试将 future 解析为最终值,如果该值尚不可用,请注册当前任务以进行唤醒。 Read more

Auto Trait Implementations

Blanket Implementations

获取 self 的 TypeId。 Read more

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

从拥有的值中借用。 Read more

执行转换。

执行转换。

🔬 This is a nightly-only experimental API. (into_future #67644)

future 完成时将产生的输出。

🔬 This is a nightly-only experimental API. (into_future #67644)

我们要把它变成哪种 future?

🔬 This is a nightly-only experimental API. (into_future #67644)

根据一个值创建一个 future。

获得所有权后的结果类型。

通常通过克隆从借用数据中创建拥有的数据。 Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)

recently added

使用借来的数据来替换拥有的数据,通常是通过克隆。 Read more

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

执行转换。

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

执行转换。