pub struct ProcessCredentials {
pub pid: i32,
pub uid: u32,
pub gid: u32,
}
Expand description
Process credentials for a Unix domain socket connection.
When dealing with Unix domain sockets, they can be configured such that the “process credentials” of the remote peer are sent as part of each received message. These “credentials” are the process ID of the remote peer, and the user ID and group ID that the process is running as.
In some cases, this information can be useful for identifying the remote peer and enriching the received data in an automatic way.
Fields§
§pid: i32
Process ID of the remote peer.
uid: u32
User ID of the remote peer process.
gid: u32
Group ID of the remote peer process.
Trait Implementations§
Source§impl Clone for ProcessCredentials
impl Clone for ProcessCredentials
Source§fn clone(&self) -> ProcessCredentials
fn clone(&self) -> ProcessCredentials
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<ProcessCredentials> for ConnectionAddress
Available on Unix only.
impl From<ProcessCredentials> for ConnectionAddress
Available on Unix only.
Source§fn from(creds: ProcessCredentials) -> Self
fn from(creds: ProcessCredentials) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessCredentials
impl RefUnwindSafe for ProcessCredentials
impl Send for ProcessCredentials
impl Sync for ProcessCredentials
impl Unpin for ProcessCredentials
impl UnwindSafe for ProcessCredentials
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Track for T
impl<T> Track for T
Source§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked
wrapper. Read moreSource§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked
wrapper. Read more