pub(crate) struct DlsymWeak<F> {
name: *const c_char,
func: Atomic<*mut c_void>,
_marker: PhantomData<F>,
}
Available on non-
target_os=espidf
only.Fields§
§name: *const c_char
A pointer to the nul-terminated name of the symbol.
func: Atomic<*mut c_void>
§_marker: PhantomData<F>
Implementations§
Source§impl<F: FnPtr> DlsymWeak<F>
impl<F: FnPtr> DlsymWeak<F>
Sourcepub(crate) const unsafe fn new(name: &'static CStr) -> Self
pub(crate) const unsafe fn new(name: &'static CStr) -> Self
§Safety
If the signature of F
does not match the signature of the symbol (if
it exists), calling the function pointer returned by get()
is
undefined behaviour.
pub(crate) fn get(&self) -> Option<F>
fn initialize(&self) -> Option<F>
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for DlsymWeak<F>
impl<F> RefUnwindSafe for DlsymWeak<F>where
F: RefUnwindSafe,
impl<F> Unpin for DlsymWeak<F>where
F: Unpin,
impl<F> UnwindSafe for DlsymWeak<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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more