pub struct Identity {}Expand description
Per-spawn identity for the worker.
On Unix, the control process’s host UID/GID are retained; custom host identities are not supported. On Linux, namespace UID/GID 0 map to the spawning process’s effective UID/GID.
On Windows, the AppContainer moniker is reflected in the Windows launch preparation. The AppContainer field is only available on Windows.
Custom host UID/GID inputs cannot be supplied:
ⓘ
let identity = sandbox::Identity {
uid: Some(0),
..Default::default()
};Trait Implementations§
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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