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: ?Sized, C: ?Sized, T: ?Sized> Freeze for Msghdr<'a, D, C, T>
impl<'a, D: ?Sized, C: ?Sized, T: ?Sized> RefUnwindSafe for Msghdr<'a, D, C, T>
impl<'a, D: ?Sized, C: ?Sized, T: ?Sized> Send for Msghdr<'a, D, C, T>
impl<'a, D: ?Sized, C: ?Sized, T: ?Sized> Sync for Msghdr<'a, D, C, T>
impl<'a, D: ?Sized, C: ?Sized, T: ?Sized> Unpin for Msghdr<'a, D, C, T>
impl<'a, D: ?Sized, C: ?Sized, T: ?Sized> UnwindSafe for Msghdr<'a, D, C, T>
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