Struct neon::context::Lock[][src]

pub struct Lock<'a> { /* fields omitted */ }

An RAII implementation of a "scoped lock" of the JS engine. When this structure is dropped (falls out of scope), the engine will be unlocked.

Types of JS values that support the Borrow and BorrowMut traits can be inspected while the engine is locked by passing a reference to a Lock to their methods.

Auto Trait Implementations

impl<'a> !Send for Lock<'a>

impl<'a> !Sync for Lock<'a>