[][src]Struct dynasmrt::Executor

pub struct Executor { /* fields omitted */ }

A read-only shared reference to the executable buffer inside an Assembler. By locking it the internal ExecutableBuffer can be accessed and executed.

Methods

impl Executor[src]

A read-only lockable reference to the internal ExecutableBuffer of an Assembler. To gain access to this buffer, it must be locked.

pub fn lock(&self) -> RwLockReadGuard<ExecutableBuffer>[src]

Gain read-access to the internal ExecutableBuffer. While the returned guard is alive, it can be used to read and execute from the ExecutableBuffer. Any pointers created to the Executablebuffer should no longer be used when the guard is dropped.

Trait Implementations

impl Clone for Executor[src]

impl Debug for Executor[src]

Auto Trait Implementations

impl Sync for Executor

impl Send for Executor

impl Unpin for Executor

impl UnwindSafe for Executor

impl RefUnwindSafe for Executor

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for 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.

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

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

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