pub struct UCred {
pub uid: u32,
pub gid: u32,
pub pid: Option<i32>,
}
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
)Available on Unix only.
Expand description
Credentials for a UNIX process for credentials passing.
Fields§
§uid: u32
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
)The UID part of the peer credential. This is the effective UID of the process at the domain socket’s endpoint.
gid: u32
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
)The GID part of the peer credential. This is the effective GID of the process at the domain socket’s endpoint.
pid: Option<i32>
🔬This is a nightly-only experimental API. (
peer_credentials_unix_socket
)The PID part of the peer credential. This field is optional because the PID part of the peer credentials is not supported on every platform. On platforms where the mechanism to discover the PID exists, this field will be populated to the PID of the process at the domain socket’s endpoint. Otherwise, it will be set to None.
Trait Implementations§
source§impl PartialEq for UCred
impl PartialEq for UCred
impl Copy for UCred
impl Eq for UCred
impl StructuralPartialEq for UCred
Auto Trait Implementations§
impl Freeze for UCred
impl RefUnwindSafe for UCred
impl Send for UCred
impl Sync for UCred
impl Unpin for UCred
impl UnwindSafe for UCred
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> MakeSized for Twhere
T: ?Sized,
impl<T> MakeSized for Twhere
T: ?Sized,
source§fn make_sized(&self) -> Box<T>
fn make_sized(&self) -> Box<T>
logic ⚠
ensures
*result == *self