pub struct SyncShapeTableScope { /* private fields */ }Expand description
RAII guard that installs a shape-table handle on the thread-local slot for the lifetime of the guard.
The previous value (if any) is captured on construction and restored on drop, so nested scopes compose correctly. Used by synchronous VM execution entry points (CLI, unit tests, REPL one-shot) that are not running under a tokio task.
Implementations§
Source§impl SyncShapeTableScope
impl SyncShapeTableScope
Sourcepub fn enter(handle: Arc<ShapeTableHandle>) -> Self
pub fn enter(handle: Arc<ShapeTableHandle>) -> Self
Install handle as the current thread-local shape-table handle,
saving the previous value for restoration on drop.
Trait Implementations§
Source§impl Drop for SyncShapeTableScope
impl Drop for SyncShapeTableScope
Auto Trait Implementations§
impl Freeze for SyncShapeTableScope
impl RefUnwindSafe for SyncShapeTableScope
impl Send for SyncShapeTableScope
impl Sync for SyncShapeTableScope
impl Unpin for SyncShapeTableScope
impl UnsafeUnpin for SyncShapeTableScope
impl UnwindSafe for SyncShapeTableScope
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