Skip to main content

RuntimeBlockOn

Trait RuntimeBlockOn 

Source
pub trait RuntimeBlockOn {
    // Required method
    fn block_on<F>(&self, future: F) -> <F as Future>::Output
       where F: Future;
}

Required Methods§

Source

fn block_on<F>(&self, future: F) -> <F as Future>::Output
where F: Future,

完整拥有者推进原服务;普通共享句柄只推进本根值。 非法嵌套/目标或推进权限冲突在首次poll前panic;根panic继续传播。

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§