Struct endpoint_sec::EventSu
source · 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§
source§impl<'a> PartialEq for EventSu<'a>
impl<'a> PartialEq for EventSu<'a>
impl<'a> Eq for EventSu<'a>
impl Send for EventSu<'_>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for EventSu<'a>
impl<'a> !Sync 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