Struct dynasmrt::Executor
[−]
[src]
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 Debug for Executor
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more