pub struct AgentEventTapGuard { /* private fields */ }Expand description
Keeps one agent’s synchronous event tap registered.
Dropping it stops future observation and waits for any callback already in
flight, so it must outlive the run being observed — binding it to _ drops
the guard before observation can continue.
Because drop waits, do not drop a guard while holding a lock or other resource that an in-flight callback needs.
Trait Implementations§
Source§impl Drop for AgentEventTapGuard
impl Drop for AgentEventTapGuard
Auto Trait Implementations§
impl Freeze for AgentEventTapGuard
impl RefUnwindSafe for AgentEventTapGuard
impl Send for AgentEventTapGuard
impl Sync for AgentEventTapGuard
impl Unpin for AgentEventTapGuard
impl UnsafeUnpin for AgentEventTapGuard
impl UnwindSafe for AgentEventTapGuard
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