pub struct Msghdr<'a, D: MaybeUninitIovec + ?Sized, C: ?Sized, T: SockAddr + ?Sized> {
pub iov: &'a D,
pub control: Option<&'a C>,
pub name: Option<&'a T>,
}Expand description
Rusty version of an immutable c::msghdr
Use sockaddr_none_ref to avoid type inference errors
Fields§
§iov: &'a D§control: Option<&'a C>§name: Option<&'a T>Auto Trait Implementations§
impl<'a, D, C, T> Freeze for Msghdr<'a, D, C, T>
impl<'a, D, C, T> RefUnwindSafe for Msghdr<'a, D, C, T>where
&'a D: RefUnwindSafe,
Option<&'a C>: RefUnwindSafe,
Option<&'a T>: RefUnwindSafe,
D: ?Sized,
C: ?Sized,
T: ?Sized,
impl<'a, D, C, T> Send for Msghdr<'a, D, C, T>
impl<'a, D, C, T> Sync for Msghdr<'a, D, C, T>
impl<'a, D, C, T> Unpin for Msghdr<'a, D, C, T>
impl<'a, D, C, T> UnsafeUnpin for Msghdr<'a, D, C, T>where
&'a D: UnsafeUnpin,
Option<&'a C>: UnsafeUnpin,
Option<&'a T>: UnsafeUnpin,
D: ?Sized,
C: ?Sized,
T: ?Sized,
impl<'a, D, C, T> UnwindSafe for Msghdr<'a, D, C, T>where
&'a D: UnwindSafe,
Option<&'a C>: UnwindSafe,
Option<&'a T>: UnwindSafe,
D: ?Sized,
C: ?Sized,
T: ?Sized,
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