[−][src]Struct tokio_seqpacket::ancillary::SocketCred
Unix credential.
Implementations
impl SocketCred
[src]
pub fn new() -> SocketCred
[src]
Create a Unix credential struct.
PID, UID and GID is set to 0.
pub fn set_pid(&mut self, pid: pid_t)
[src]
Set the PID.
pub fn get_pid(&self) -> pid_t
[src]
Get the current PID.
pub fn set_uid(&mut self, uid: uid_t)
[src]
Set the UID.
pub fn get_uid(&self) -> uid_t
[src]
Get the current UID.
pub fn set_gid(&mut self, gid: gid_t)
[src]
Set the GID.
pub fn get_gid(&self) -> gid_t
[src]
Get the current GID.
Trait Implementations
impl Clone for SocketCred
[src]
fn clone(&self) -> SocketCred
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SocketCred
[src]
impl Send for SocketCred
[src]
impl Sync for SocketCred
[src]
impl Unpin for SocketCred
[src]
impl UnwindSafe for SocketCred
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,