pub struct TimeoutGuard { /* private fields */ }Expand description
Guard for per-session CPU timeout enforcement.
Spawns a timer thread that calls v8::Isolate::terminate_execution()
and closes the active execution abort channel to unblock any channel-based
readers when the timeout elapses. Drop or call cancel() to prevent firing.
Implementations§
Trait Implementations§
Source§impl Drop for TimeoutGuard
impl Drop for TimeoutGuard
Auto Trait Implementations§
impl !RefUnwindSafe for TimeoutGuard
impl !UnwindSafe for TimeoutGuard
impl Freeze for TimeoutGuard
impl Send for TimeoutGuard
impl Sync for TimeoutGuard
impl Unpin for TimeoutGuard
impl UnsafeUnpin for TimeoutGuard
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