#[repr(transparent)]pub struct FuncStorage<F: Func> {
_pd: PhantomData<F>,
inner: AtomicFnPtr,
}Expand description
Stores the necessary runtime information about a hot-reloadable function.
Fields§
§_pd: PhantomData<F>§inner: AtomicFnPtr§Safety
See the module docs:
- The actual type must never change.
- The contained actual type must be
F::Ptr.
Implementations§
Auto Trait Implementations§
impl<F> !Freeze for FuncStorage<F>
impl<F> RefUnwindSafe for FuncStorage<F>where
F: RefUnwindSafe,
impl<F> Send for FuncStorage<F>where
F: Send,
impl<F> Sync for FuncStorage<F>where
F: Sync,
impl<F> Unpin for FuncStorage<F>where
F: Unpin,
impl<F> UnsafeUnpin for FuncStorage<F>
impl<F> UnwindSafe for FuncStorage<F>where
F: UnwindSafe,
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