pub struct EventSudo<'a> { /* private fields */ }
Available on crate feature
macos_14_0_0
and macOS only.Expand description
A sudo event.
Implementations§
Source§impl<'a> EventSudo<'a>
impl<'a> EventSudo<'a>
Sourcepub fn reject_info(&self) -> Option<RejectInfo<'a>>
pub fn reject_info(&self) -> Option<RejectInfo<'a>>
Optional. When success is false, describes why sudo was rejected
Sourcepub fn has_from_uid(&self) -> bool
pub fn has_from_uid(&self) -> bool
Describes whether or not the from_uid is interpretable
Sourcepub fn from_username(&self) -> Option<&'a OsStr>
pub fn from_username(&self) -> Option<&'a OsStr>
Optional. The name of the user who initiated the su
Sourcepub fn has_to_uid(&self) -> bool
pub fn has_to_uid(&self) -> bool
Describes whether or not the to_uid is interpretable
Sourcepub fn to_uid(&self) -> Option<uid_t>
pub fn to_uid(&self) -> Option<uid_t>
Optional. If success, the user ID that is going to be substituted
Sourcepub fn to_username(&self) -> Option<&'a OsStr>
pub fn to_username(&self) -> Option<&'a OsStr>
Optional. If success, the user name that is going to be substituted
Trait Implementations§
impl<'a> Eq for EventSudo<'a>
impl Send for EventSudo<'_>
impl Sync for EventSudo<'_>
Auto Trait Implementations§
impl<'a> Freeze for EventSudo<'a>
impl<'a> RefUnwindSafe for EventSudo<'a>
impl<'a> Unpin for EventSudo<'a>
impl<'a> UnwindSafe for EventSudo<'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