pub struct Executor { /* private fields */ }
Expand description
A read-only shared reference to the executable buffer inside an Assembler
. By
locking it the internal ExecutableBuffer
can be accessed and executed.
Implementations§
source§impl Executor
impl Executor
A read-only lockable reference to the internal ExecutableBuffer
of an Assembler
.
To gain access to this buffer, it must be locked.
sourcepub fn lock(&self) -> RwLockReadGuard<'_, ExecutableBuffer>
pub fn lock(&self) -> RwLockReadGuard<'_, ExecutableBuffer>
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.