pub struct PrivDropConfig {
pub user: Option<String>,
pub group: Option<String>,
pub chroot: Option<PathBuf>,
}Expand description
Privilege-dropping settings (drop root after binding; Unix only).
Fields§
§user: Option<String>User to switch to: NAME or UID (a group may be appended as
NAME:GROUP, or supplied separately via group).
group: Option<String>Group to switch to: NAME or GID. Overrides the user’s primary group.
chroot: Option<PathBuf>Directory to chroot into before dropping.
Trait Implementations§
Source§impl Clone for PrivDropConfig
impl Clone for PrivDropConfig
Source§fn clone(&self) -> PrivDropConfig
fn clone(&self) -> PrivDropConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrivDropConfig
impl Debug for PrivDropConfig
Source§impl Default for PrivDropConfig
impl Default for PrivDropConfig
Source§fn default() -> PrivDropConfig
fn default() -> PrivDropConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrivDropConfig
impl<'de> Deserialize<'de> for PrivDropConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PrivDropConfig
impl RefUnwindSafe for PrivDropConfig
impl Send for PrivDropConfig
impl Sync for PrivDropConfig
impl Unpin for PrivDropConfig
impl UnsafeUnpin for PrivDropConfig
impl UnwindSafe for PrivDropConfig
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