Struct neon::context::Lock

source ·
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§

Constructs a new Lock and locks the VM. See also Context::lock.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.