[−][src]Struct libuv::shared_libs::DLib
Shared library data type.
Implementations
impl DLib
[src]
pub fn open(filename: &str) -> Result<DLib, Box<dyn Error>>
[src]
Opens a shared library. The filename is in utf-8.
pub fn close(self)
[src]
Close the shared library.
pub fn sym<T>(&self, name: &str) -> Result<&T, Box<dyn Error>>
[src]
Retrieves a data pointer from a dynamic library. It is legal for a symbol to map to NULL. Returns a DLError if the symbol was not found.
Type "T" should be either a function pointer or a *mut/*const pointer. For example: sym::<extern "C" fn()>("test") sym::<*mut f64>("test")
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DLib
impl !Send for DLib
impl !Sync for DLib
impl Unpin for DLib
impl UnwindSafe for DLib
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,