pub struct InvokerSlot { /* private fields */ }Expand description
A single atomic-pointer slot for one registered host-side function
pointer. 0 means “not registered”; the static thunks bail out (returning
the kind’s default value) when they see an unregistered slot rather than
transmuting 0 into a fn pointer and crashing.
Implementations§
Source§impl InvokerSlot
impl InvokerSlot
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create an empty slot. const so it can be used to declare static
per-kind slots in impl_managed_callback! expansions.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InvokerSlot
impl RefUnwindSafe for InvokerSlot
impl Send for InvokerSlot
impl Sync for InvokerSlot
impl Unpin for InvokerSlot
impl UnsafeUnpin for InvokerSlot
impl UnwindSafe for InvokerSlot
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