pub struct DetachedCallbacks { /* private fields */ }Expand description
Observable ownership of a sealed callback domain after timed shutdown.
The public observation handle is unique and deliberately not Clone, keeping DLL-unload and
final-wait responsibility obvious. The sealed callback domain itself remains self-owned.
ⓘ
use nbreq::DetachedCallbacks;
fn require_clone<T: Clone>() {}
require_clone::<DetachedCallbacks>();This value contains no Engine, network, resolver, TLS, or backend state. Dropping it does not interrupt callbacks; the callback domain remains self-owned until complete.
Implementations§
Source§impl DetachedCallbacks
impl DetachedCallbacks
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns whether all callbacks have returned and workers have exited.
Sourcepub fn wait(&self) -> Result<(), ShutdownError>
pub fn wait(&self) -> Result<(), ShutdownError>
Waits without a library-imposed timeout for the sealed domain to complete.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DetachedCallbacks
impl RefUnwindSafe for DetachedCallbacks
impl Send for DetachedCallbacks
impl Sync for DetachedCallbacks
impl Unpin for DetachedCallbacks
impl UnsafeUnpin for DetachedCallbacks
impl UnwindSafe for DetachedCallbacks
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