[−][src]Struct zenoh_util::LibLoader
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_dir
is 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:
- the Library
- its full path
pub fn load_all_with_prefix(
&self,
prefix: Option<&str>
) -> Vec<(Library, PathBuf, String)>
[src]
&self,
prefix: Option<&str>
) -> Vec<(Library, PathBuf, String)>
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
Auto Trait Implementations
impl RefUnwindSafe for LibLoader
impl Send for LibLoader
impl Sync for LibLoader
impl Unpin for LibLoader
impl UnwindSafe for LibLoader
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,