pub enum Elevation {
Prompt,
Never,
Custom(Elevator),
}Expand description
How to get administrator rights when the system folder isn’t writable.
Variants§
Prompt
The OS’s own password prompt (macOS); elsewhere the same as Never.
Never
Never ask: fall back straight away.
Custom(Elevator)
A caller-supplied runner (tests, or an app with its own privileged helper).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Elevation
impl !UnwindSafe for Elevation
impl Freeze for Elevation
impl Send for Elevation
impl Sync for Elevation
impl Unpin for Elevation
impl UnsafeUnpin for Elevation
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