Struct AncillaryDataIter

pub(in ::os::unix::net::ancillary) struct AncillaryDataIter<'a, T> { pub(in ::os::unix::net::ancillary) data: &'a [u8], pub(in ::os::unix::net::ancillary) phantom: PhantomData<T> }

Fields

data: &'a [u8]
phantom: PhantomData<T>

Implementations

impl<'a, T> AncillaryDataIter<'a, T>

unsafe fn new(data: &'a [u8]) -> AncillaryDataIter<'a, T>

Creates AncillaryDataIter struct to iterate through the data unit in the control message.

Safety

data must contain a valid control message.

Trait Implementations

impl<'a, T> Iterator for AncillaryDataIter<'a, T>

type Item = T;
fn next(&mut self) -> Option<T>

Auto Trait Implementations

impl<'a, T> Freeze for AncillaryDataIter<'a, T> where PhantomData<T>: Freeze,

impl<'a, T> RefUnwindSafe for AncillaryDataIter<'a, T> where PhantomData<T>: RefUnwindSafe,

impl<'a, T> Send for AncillaryDataIter<'a, T> where PhantomData<T>: Send,

impl<'a, T> Sync for AncillaryDataIter<'a, T> where PhantomData<T>: Sync,

impl<'a, T> Unpin for AncillaryDataIter<'a, T> where PhantomData<T>: Unpin,

impl<'a, T> UnsafeUnpin for AncillaryDataIter<'a, T> where PhantomData<T>: UnsafeUnpin,

impl<'a, T> UnwindSafe for AncillaryDataIter<'a, T> where PhantomData<T>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for AncillaryDataIter<'a, T> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for AncillaryDataIter<'a, T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AncillaryDataIter<'a, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AncillaryDataIter<'a, T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for AncillaryDataIter<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for AncillaryDataIter<'a, T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for AncillaryDataIter<'a, T>

impl<T, U> Into<U> for AncillaryDataIter<'a, T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AncillaryDataIter<'a, T> 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 AncillaryDataIter<'a, T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>