Struct RestoreOnPending
#[must_use]
pub struct RestoreOnPending(/* private field */, /* private field */);
Value returned by the poll_proceed method.
Implementations
impl RestoreOnPending
fn made_progress(&self)Signals that the task that obtained this
RestoreOnPendingwas able to make progress. This prevents the task budget from being restored to the value it had prior to obtaining this instance when it is dropped.
Trait Implementations
impl Debug for RestoreOnPending
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Drop for RestoreOnPending
fn drop(&mut self)
Auto Trait Implementations
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 Implementations
impl<T> Any for RestoreOnPending
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RestoreOnPending
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RestoreOnPending
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for RestoreOnPending
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for RestoreOnPending
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RestoreOnPending
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RestoreOnPending
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>