pub struct MultiHeaders<S> {
items: Box<[mmsghdr]>,
addresses: Box<[MaybeUninit<S>]>,
_cmsg_buffers: Option<Box<[u8]>>,
msg_controllen: usize,
}
Fields§
§items: Box<[mmsghdr]>
§addresses: Box<[MaybeUninit<S>]>
§_cmsg_buffers: Option<Box<[u8]>>
§msg_controllen: usize
Implementations§
Source§impl<S> MultiHeaders<S>
impl<S> MultiHeaders<S>
Sourcepub fn preallocate(num_slices: usize, cmsg_buffer: Option<Vec<u8>>) -> Selfwhere
S: Copy + SockaddrLike,
pub fn preallocate(num_slices: usize, cmsg_buffer: Option<Vec<u8>>) -> Selfwhere
S: Copy + SockaddrLike,
Preallocate structure used by recvmmsg
and sendmmsg
takes number of headers to preallocate
cmsg_buffer
should be created with cmsg_space!
if needed
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for MultiHeaders<S>
impl<S> RefUnwindSafe for MultiHeaders<S>where
S: RefUnwindSafe,
impl<S> !Send for MultiHeaders<S>
impl<S> !Sync for MultiHeaders<S>
impl<S> Unpin for MultiHeaders<S>
impl<S> UnwindSafe for MultiHeaders<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more