pub struct EventSu<'a> { /* private fields */ }
Available on crate feature
macos_14_0_0
and macOS only.Expand description
A su
policy decision event.
Implementations§
Source§impl<'a> EventSu<'a>
impl<'a> EventSu<'a>
Sourcepub fn failure_message(&self) -> Option<&'a OsStr>
pub fn failure_message(&self) -> Option<&'a OsStr>
If success
is false
, a failure message is contained in this field.
Sourcepub fn from_username(&self) -> &'a OsStr
pub fn from_username(&self) -> &'a OsStr
The name of the user who initiated the su.
Sourcepub fn has_to_uid(&self) -> bool
pub fn has_to_uid(&self) -> bool
True iff su was successful, Describes whether or not the to_uid is interpretable
Sourcepub fn to_username(&self) -> Option<&'a OsStr>
pub fn to_username(&self) -> Option<&'a OsStr>
If success, the user name that is going to be substituted
Trait Implementations§
impl<'a> Eq for EventSu<'a>
impl Send for EventSu<'_>
impl Sync for EventSu<'_>
Auto Trait Implementations§
impl<'a> Freeze for EventSu<'a>
impl<'a> RefUnwindSafe for EventSu<'a>
impl<'a> Unpin for EventSu<'a>
impl<'a> UnwindSafe for EventSu<'a>
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