struct TrustedUsersCache<U: PwdGrpProvider> {
pwd_grp: U,
trusted_uid: HashMap<TrustedUser, Option<u32>>,
trusted_gid: HashMap<TrustedGroup, Option<u32>>,
}
Available on
target_family="unix"
and non-iOS and non-Android and non-tvOS only.Expand description
Cache for the trusted uid/gid answers
Fields§
§pwd_grp: U
The passwd/group provider (possibly mocked)
trusted_uid: HashMap<TrustedUser, Option<u32>>
Cached trusted uid determination
trusted_gid: HashMap<TrustedGroup, Option<u32>>
Cached trusted gid determination
Trait Implementations§
Source§impl<U: Debug + PwdGrpProvider> Debug for TrustedUsersCache<U>
impl<U: Debug + PwdGrpProvider> Debug for TrustedUsersCache<U>
Source§impl<U: Default + PwdGrpProvider> Default for TrustedUsersCache<U>
impl<U: Default + PwdGrpProvider> Default for TrustedUsersCache<U>
Source§fn default() -> TrustedUsersCache<U>
fn default() -> TrustedUsersCache<U>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<U> Freeze for TrustedUsersCache<U>where
U: Freeze,
impl<U> RefUnwindSafe for TrustedUsersCache<U>where
U: RefUnwindSafe,
impl<U> Send for TrustedUsersCache<U>where
U: Send,
impl<U> Sync for TrustedUsersCache<U>where
U: Sync,
impl<U> Unpin for TrustedUsersCache<U>where
U: Unpin,
impl<U> UnwindSafe for TrustedUsersCache<U>where
U: UnwindSafe,
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