Структура Restore OnPending
pub struct RestoreOnPending(/* private fields */);
Доступно только при функции crate
rt и (функциях crate fs или io-std или net или process или rt или signal или sync или time).Значение, возвращаемое методом poll_proceed.
Реализации
impl RestoreOnPending
pub fn made_progress(&self)
Сообщает, что задача, получившая этот RestoreOnPending, смогла продвинуться вперёд. Это предотвращает восстановление бюджета задачи до значения, которое он имел до получения этого экземпляра, при его удалении.
Реализации трейтов
impl Debug for RestoreOnPending
impl Drop for RestoreOnPending
Автоматические реализации трейтов
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
Общие реализации
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Изменяемо заимствует данные из принадлежащего значения. Подробнее
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> ⓘ
Присоединяет текущий по умолчанию
Subscriber к этому типу и возвращает обёртку WithDispatch. Подробнее
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/task/coop/struct.RestoreOnPending.html