pub struct BackgroundCleanupTask { /* private fields */ }Expand description
Handle that can be asked to stop without aborting in-flight IO blindly. 可协作停止的句柄,避免直接 abort 中断进行中的 IO。
Implementations§
Source§impl BackgroundCleanupTask
impl BackgroundCleanupTask
Sourcepub fn spawn(
config: CleanupConfig,
nonce: Option<Arc<NonceManager>>,
online: Option<Arc<OnlineManager>>,
) -> Self
pub fn spawn( config: CleanupConfig, nonce: Option<Arc<NonceManager>>, online: Option<Arc<OnlineManager>>, ) -> Self
spawn — spawn | spawn
Trait Implementations§
Source§impl Debug for BackgroundCleanupTask
impl Debug for BackgroundCleanupTask
Source§impl Drop for BackgroundCleanupTask
impl Drop for BackgroundCleanupTask
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundCleanupTask
impl !UnwindSafe for BackgroundCleanupTask
impl Freeze for BackgroundCleanupTask
impl Send for BackgroundCleanupTask
impl Sync for BackgroundCleanupTask
impl Unpin for BackgroundCleanupTask
impl UnsafeUnpin for BackgroundCleanupTask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more