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
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more