[][src]Struct zenoh_util::LibLoader

pub struct LibLoader { /* fields omitted */ }

LibLoader allows search for librairies and to load them.

Implementations

impl LibLoader[src]

pub fn new(search_dirs: &[&str], exe_parent_dir: bool) -> LibLoader[src]

Creates a new LibLoader with a set of paths where the libraries will be searched for. If exe_parent_diris true, the parent directory of the current executable is also added to the set of paths for search.

pub fn search_paths(&self) -> &[PathBuf][src]

Return the list of search paths used by this LibLoader

pub fn load_file(path: &str) -> ZResult<(Library, PathBuf)>[src]

Load a library from the specified path.

pub fn search_and_load(&self, name: &str) -> ZResult<(Library, PathBuf)>[src]

Search for library with filename: LIB_PREFIX+name+LIB_SUFFIX and load it. The result is a tuple with:

pub fn load_all_with_prefix(
    &self,
    prefix: Option<&str>
) -> Vec<(Library, PathBuf, String)>
[src]

Search and load all librairies with filename starting with LIB_PREFIX+prefix and ending with LIB_SUFFIX. The result is a list of tuple with:

  • the Library
  • its full path
  • its short name (i.e. filename stripped of prefix and suffix)

Trait Implementations

impl Clone for LibLoader[src]

impl Debug for LibLoader[src]

impl Default for LibLoader[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,