Struct dlfcn::dynlib::Library [] [src]

pub struct Library { /* fields omitted */ }

A handle wrapper with a VTable of symbols found in the library as they're requested.

Methods

impl Library
[src]

[src]

Returns an unsafe reference to the handle of the library. Usually, the [sym] and [drop] methods are enough, but you're free to use it for anything else, provided you can dereference it.

[src]

Returns an unsafe reference to the VTable of the library. Usually, the [sym] method is enough, though you're free to use it for what you may want to use it for.

[src]

Returns the path of the dynamic library as given to [open] or [new].

[src]

Requests and finds a symbol in the library. So long [RtldOr::Local] wasn't specified, it will also look at other loaded symbols which are either in the program itself or were loaded with [RtldOr::Global].

[src]

Makes a safe instance using [new] then applies the closure given to it. It returns true if it was successful, or false if anything went wrong.

[src]

Creates a new instance of the library wanted. There are no checks other than handle checks upon loading it. It is the user's responsibility to pass a valid CString instance and valid flags.

Trait Implementations

impl Drop for Library
[src]

[src]

Closes the handle then drops the entire library.

Auto Trait Implementations

impl !Send for Library

impl !Sync for Library