pub enum CleanupTask {
RemoveFile(PathBuf),
CloseCdpStream {
page: Page,
handle: StreamHandle,
},
}Expand description
An async cleanup action to run on the background worker.
New variants can be added without touching the Drop call sites that
submit the existing variants — the dispatcher’s match is
exhaustive but small, and submit accepts any CleanupTask.
Variants§
RemoveFile(PathBuf)
Remove a file from disk (best-effort; errors are logged at
debug level and swallowed).
CloseCdpStream
Close a CDP IO-stream handle on a specific page. Used by
StreamGuard::Drop when the caller dropped the guard without
explicitly calling finish.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CleanupTask
impl RefUnwindSafe for CleanupTask
impl Send for CleanupTask
impl Sync for CleanupTask
impl Unpin for CleanupTask
impl UnsafeUnpin for CleanupTask
impl UnwindSafe for CleanupTask
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