pub struct LoadPathList(/* private fields */);
Expand description
A list of load paths.
The order of the provided LoadPath
s is important, as it defines the priority in which these
paths will be explored. Paths that come first (smaller index) have a higher priority.
Implementations§
Source§impl LoadPathList
impl LoadPathList
Sourcepub fn from_effective_user() -> Self
pub fn from_effective_user() -> Self
Returns the paths as LoadPathList
, depending on calling user.
Checks the effective User ID of the calling process and
if the User ID is < 1000
returns the system mode load path list, else
the user mode load path list.
§Safety
Calls the unsafe libc::geteuid
to determine the effective User ID of the process which
may panic.
A user is not guaranteed to exist after calling this function!
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadPathList
impl RefUnwindSafe for LoadPathList
impl Send for LoadPathList
impl Sync for LoadPathList
impl Unpin for LoadPathList
impl UnwindSafe for LoadPathList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more