Struct RestoreOnPending
pub struct RestoreOnPending(/* private fields */);
Available on crate feature
rt and (crate features fs or io-std or net or process or rt or signal or sync or time) only.Value returned by the poll_proceed method.
Implementations
impl RestoreOnPending
pub fn made_progress(&self)
Signals that the task that obtained this RestoreOnPending was 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
impl Drop for RestoreOnPending
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> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/task/coop/struct.RestoreOnPending.html