pub struct DispatchCaptureGuard { /* private fields */ }Expand description
RAII guard that activates dispatch-side capture for the lifetime of the
guard. The constructor is pub(crate): activation code cannot create
one. The dispatch layer (plexus-core / plexus-transport, via a
pub(crate)-exposed helper in this crate) is the only caller.
On Drop, the guard clears the thread-local even if the wrapped
operation panicked, so a mid-serialization panic cannot leak the value
onto a subsequent reentrant call.
Trait Implementations§
Source§impl Drop for DispatchCaptureGuard
impl Drop for DispatchCaptureGuard
Auto Trait Implementations§
impl Freeze for DispatchCaptureGuard
impl RefUnwindSafe for DispatchCaptureGuard
impl Send for DispatchCaptureGuard
impl Sync for DispatchCaptureGuard
impl Unpin for DispatchCaptureGuard
impl UnsafeUnpin for DispatchCaptureGuard
impl UnwindSafe for DispatchCaptureGuard
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