pub struct RestoreOnPending(/* 私有字段 */);展开描述
由 poll_proceed 方法返回的值。
实现§
源代码§impl RestoreOnPending
impl RestoreOnPending
源代码pub fn made_progress(&self)
pub fn made_progress(&self)
表示获取此 RestoreOnPending 的任务能够取得进展。这可以防止在 drop 时将任务预算恢复为获取此实例之前的值。
trait 实现§
源代码§impl Debug for RestoreOnPending
impl Debug for RestoreOnPending
自动 trait 实现§
impl !Freeze for RestoreOnPending
impl !RefUnwindSafe for RestoreOnPending
impl !Send for RestoreOnPending
impl !Sync for RestoreOnPending
impl Unpin for RestoreOnPending
impl UnsafeUnpin for RestoreOnPending
impl UnwindSafe for RestoreOnPending
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息