pub struct Lock<'cx, C> { /* private fields */ }
Expand description
A temporary lock of an execution context.
While a lock is alive, no JavaScript code can be executed in the execution context.
Values that support the Borrow
trait may be dynamically borrowed by passing a
Lock
.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'cx, C> !RefUnwindSafe for Lock<'cx, C>
impl<'cx, C> !Send for Lock<'cx, C>
impl<'cx, C> !Sync for Lock<'cx, C>
impl<'cx, C> Unpin for Lock<'cx, C>
impl<'cx, C> UnwindSafe for Lock<'cx, C> where
C: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more