pub struct UidCache { /* private fields */ }Expand description
A small cache for UID-to-username lookups.
Each call to UidCache::get reads /etc/passwd at most once per
distinct UID for the lifetime of the cache. Useful for tools that
resolve a username column for every row in a process listing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UidCache
impl RefUnwindSafe for UidCache
impl Send for UidCache
impl Sync for UidCache
impl Unpin for UidCache
impl UnsafeUnpin for UidCache
impl UnwindSafe for UidCache
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