Method lrs::socket::cmsg::CMsgIter::new

Creates a new iterator.

Syntax

impl<'a> CMsgIter<'a> {
    fn new(buf: &'a [u8]) -> Option<CMsgIter<'a>>
}

Arguments

NameDescription
buf

The buffer which contains the control messages.

Remarks

This operation fails if the slice is not properly aligned.