Struct dlfcn::rtld::RtldValue
[−]
[src]
pub struct RtldValue { /* fields omitted */ }
A safe Rust wrapper around the RTLD values defined in <dlfcn.h> in the C stdlib.
Create a new instance through [RtldValue::new
].
Methods
impl RtldValue
[src]
pub fn new(main: RtldMain) -> Self
[src]
Makes a new value with the main value as main
, of type [RtldMain
].
pub fn with(self, or: RtldOr) -> Self
[src]
Adds a [RtldOr
] value to the list. It will be ORed on top of [RtldMain
] upon calling
[RtldValue::to_libc
].
pub fn to_libc(&self) -> c_int
[src]
Converts the RTLD value to a [libc::c_int
] for use in libc related areas.