pub struct SocketCred(_);Available on Unix only.
Expand description
Unix credential.
Implementations
source impl SocketCred
impl SocketCred
source pub 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
source impl Clone for SocketCred
Available on Android or Linux only.
impl Clone for SocketCred
Available on Android or Linux only.
source fn clone(&self) -> SocketCred
fn clone(&self) -> SocketCred
Returns a copy 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 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
source impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · source fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more