pub enum RunAsUser {
Unspecified,
CurrentUser,
Root,
Specified(u32, u32),
}
Expand description
The user in the jail to run as.
Variants§
Unspecified
Do not specify the user
CurrentUser
Runs as the same user in the jail as the current user.
Root
Runs as the root user in the jail.
Specified(u32, u32)
Runs as the specified uid and gid.
This requires SandboxConfig::ugid_map
to be set.
Auto Trait Implementations§
impl RefUnwindSafe for RunAsUser
impl Send for RunAsUser
impl Sync for RunAsUser
impl Unpin for RunAsUser
impl UnwindSafe for RunAsUser
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