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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)