Struct ScmCredentials
pub struct ScmCredentials<'a>(pub(in ::os::unix::net::ancillary) AncillaryDataIter<'a, ucred>);
This control message contains unix credentials.
The level is equal to SOL_SOCKET and the type is equal to SCM_CREDENTIALS or SCM_CREDS.
Fields
0: AncillaryDataIter<'a, ucred>
Trait Implementations
impl<'a> Iterator for ScmCredentials<'a>
type Item = SocketCred;fn next(&mut self) -> Option<SocketCred>
Auto Trait Implementations
impl<'a> Freeze for ScmCredentials<'a>
impl<'a> RefUnwindSafe for ScmCredentials<'a>
impl<'a> Send for ScmCredentials<'a>
impl<'a> Sync for ScmCredentials<'a>
impl<'a> Unpin for ScmCredentials<'a>
impl<'a> UnsafeUnpin for ScmCredentials<'a>
impl<'a> UnwindSafe for ScmCredentials<'a>
Blanket Implementations
impl<I> IntoIterator for ScmCredentials<'a>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ScmCredentials<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ScmCredentials<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ScmCredentials<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ScmCredentials<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for ScmCredentials<'a>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ScmCredentials<'a>
impl<T, U> Into<U> for ScmCredentials<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ScmCredentials<'a>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for ScmCredentials<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>