[][src]Struct rusty_v8::Locker

#[repr(C)]
pub struct Locker { /* fields omitted */ }

v8::Locker is a scoped lock object. While it's active, i.e. between its construction and destruction, the current thread is allowed to use the locked isolate. V8 guarantees that an isolate can be locked by at most one thread at any time. In other words, the scope of a v8::Locker is a critical section.

Methods

impl Locker[src]

pub fn new(isolate: &Isolate) -> Self[src]

Initialize Locker for a given Isolate.

Trait Implementations

impl Drop for Locker[src]

impl InIsolate for Locker[src]

Auto Trait Implementations

impl RefUnwindSafe for Locker

impl !Send for Locker

impl !Sync for Locker

impl Unpin for Locker

impl UnwindSafe for Locker

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.