pub struct SocketCred(/* private fields */);
Expand description
Unix credential.
Implementations§
Source§impl SocketCred
impl SocketCred
Sourcepub fn new() -> SocketCred
pub fn new() -> SocketCred
Create a Unix credential struct.
PID, UID and GID is set to 0.
Trait Implementations§
Source§impl Clone for SocketCred
impl Clone for SocketCred
Source§fn clone(&self) -> SocketCred
fn clone(&self) -> SocketCred
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 moreAuto Trait Implementations§
impl Freeze for SocketCred
impl RefUnwindSafe for SocketCred
impl Send for SocketCred
impl Sync for SocketCred
impl Unpin for SocketCred
impl UnwindSafe for SocketCred
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