Struct rustc_metadata::dynamic_lib::DynamicLibrary [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
handle: *mut u8
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl DynamicLibrary
[src]
impl DynamicLibrary
pub fn open(filename: Option<&Path>) -> Result<DynamicLibrary, String>
[src]
pub fn open(filename: Option<&Path>) -> Result<DynamicLibrary, String>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Lazily open a dynamic library. When passed None it gives a handle to the calling process
pub fn open_global_now(filename: &Path) -> Result<DynamicLibrary, String>
[src]
pub fn open_global_now(filename: &Path) -> Result<DynamicLibrary, String>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Load a dynamic library into the global namespace (RTLD_GLOBAL on Unix) and do it now (don't use RTLD_LAZY on Unix).
pub fn envvar() -> &'static str
[src]
pub fn envvar() -> &'static str
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns the environment variable for this process's dynamic library search path
pub unsafe fn symbol<T>(&self, symbol: &str) -> Result<*mut T, String>
[src]
pub unsafe fn symbol<T>(&self, symbol: &str) -> Result<*mut T, String>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Accesses the value at the symbol of the dynamic library.
Trait Implementations
impl Drop for DynamicLibrary
[src]
impl Drop for DynamicLibrary
Auto Trait Implementations
impl !Send for DynamicLibrary
impl !Send for DynamicLibrary
impl !Sync for DynamicLibrary
impl !Sync for DynamicLibrary