pub struct ScopeStack<'a> { /* private fields */ }Expand description
Host-owned isolated scope stack returned by native scope-stack APIs.
Implementations§
Source§impl<'a> ScopeStack<'a>
impl<'a> ScopeStack<'a>
Sourcepub fn as_ptr(&self) -> *const NemoRelayNativeScopeStack
pub fn as_ptr(&self) -> *const NemoRelayNativeScopeStack
Returns the raw ABI pointer.
Sourcepub fn set_thread(&self) -> NemoRelayStatus
pub fn set_thread(&self) -> NemoRelayStatus
Binds this stack to the current executor thread.
Prefer PluginRuntime::bind_scope_stack_thread for synchronous code.
Async middleware may pair this with a captured binding across an await.
Capture the previous binding first and restore it after the future completes.
Trait Implementations§
Source§impl Drop for ScopeStack<'_>
impl Drop for ScopeStack<'_>
impl Send for ScopeStack<'_>
Auto Trait Implementations§
impl<'a> !Sync for ScopeStack<'a>
impl<'a> Freeze for ScopeStack<'a>
impl<'a> RefUnwindSafe for ScopeStack<'a>
impl<'a> Unpin for ScopeStack<'a>
impl<'a> UnsafeUnpin for ScopeStack<'a>
impl<'a> UnwindSafe for ScopeStack<'a>
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