pub struct NativeLibrary { /* private fields */ }Expand description
A library that was opened. It is never closed, so what it exports stays valid for the life of the process.
Implementations§
Source§impl NativeLibrary
impl NativeLibrary
Sourcepub fn open(name: &'static CStr) -> Result<Self, NativeLibraryError>
pub fn open(name: &'static CStr) -> Result<Self, NativeLibraryError>
Opens the library of that name, as the dynamic loader finds it: its
functions are bound when first called, and its symbols are available
to the libraries loaded after it (RTLD_LAZY | RTLD_GLOBAL).
Sourcepub fn open_with_flags(
name: &'static CStr,
flags: c_int,
) -> Result<Self, NativeLibraryError>
pub fn open_with_flags( name: &'static CStr, flags: c_int, ) -> Result<Self, NativeLibraryError>
Opens the library of that name with the flags of dlopen given
(RTLD_NOW | RTLD_LOCAL, for one).
Trait Implementations§
Source§impl Clone for NativeLibrary
impl Clone for NativeLibrary
impl Copy for NativeLibrary
Auto Trait Implementations§
impl Freeze for NativeLibrary
impl RefUnwindSafe for NativeLibrary
impl Send for NativeLibrary
impl Sync for NativeLibrary
impl Unpin for NativeLibrary
impl UnsafeUnpin for NativeLibrary
impl UnwindSafe for NativeLibrary
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more