pub struct TimeoutSinkCloseHandle { /* private fields */ }Expand description
A retained completion witness for a pool’s diagnostic sink.
Obtain this before releasing the pool. Clones share the same retained thread join and completion result; none of them keeps pool ownership alive.
Implementations§
Source§impl TimeoutSinkCloseHandle
impl TimeoutSinkCloseHandle
Sourcepub async fn close(&self) -> Result<(), TimeoutSinkCloseError>
pub async fn close(&self) -> Result<(), TimeoutSinkCloseError>
Wait for the shared writer thread to drain its accepted queue, close
its file, and join. Live pools or writer tasks return
TimeoutSinkCloseError::Busy; retry after they settle.
Cancellation retains the join and Closing state, so
a clone can resume this operation. New pool registration is refused
while Closing. Ordinary pool Drop does not request this shutdown.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TimeoutSinkCloseHandle
impl !UnwindSafe for TimeoutSinkCloseHandle
impl Forget for TimeoutSinkCloseHandle
impl Freeze for TimeoutSinkCloseHandle
impl Move for TimeoutSinkCloseHandle
impl Send for TimeoutSinkCloseHandle
impl Sync for TimeoutSinkCloseHandle
impl Unpin for TimeoutSinkCloseHandle
impl UnsafeUnpin for TimeoutSinkCloseHandle
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