Struct super_shell::RootShell
source · pub struct RootShell { /* private fields */ }
Expand description
Represents a shell with root privileges The shell is automatically closed when the struct is dropped The shell is opened with the pkexec command It uses the sh shell
Implementations§
source§impl RootShell
impl RootShell
Implementation of RootShell
sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Creates a new root shell Returns None if the root shell could not be created or if the user did not enter the password
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RootShell
impl Send for RootShell
impl Sync for RootShell
impl Unpin for RootShell
impl UnwindSafe for RootShell
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