[][src]Struct libuv::shared_libs::DLib

pub struct DLib { /* fields omitted */ }

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

impl Drop for DLib[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.