pub struct SocketCred(_);
Available on Unix only.
Expand description
Unix credential.
Implementations
sourceimpl SocketCred
impl SocketCred
sourcepub fn new() -> SocketCred
Available on Android or Linux only.
pub fn new() -> SocketCred
Create a Unix credential struct.
PID, UID and GID is set to 0.
Trait Implementations
sourceimpl Clone for SocketCred
Available on Android or Linux only.
impl Clone for SocketCred
Available on Android or Linux only.
sourcefn clone(&self) -> SocketCred
fn clone(&self) -> SocketCred
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for SocketCred
impl Send for SocketCred
impl Sync for SocketCred
impl Unpin for SocketCred
impl UnwindSafe for SocketCred
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more