pub struct Msghdr { /* private fields */ }
Implementations§
Source§impl Msghdr
impl Msghdr
pub fn new( msg_name: *mut c_void, msg_namelen: socklen_t, msg_iov: &Iovec, msg_iovlen: usize, msg_control: *mut c_void, msg_controllen: usize, msg_flags: c_int, ) -> Result<Self, AeronCError>
Sourcepub fn new_zeroed() -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
creates zeroed struct where the underlying c struct is on the heap
pub fn msg_name(&self) -> *mut c_void
pub fn msg_namelen(&self) -> socklen_t
pub fn msg_iov(&self) -> Iovec
pub fn msg_iovlen(&self) -> usize
pub fn msg_control(&self) -> *mut c_void
pub fn msg_controllen(&self) -> usize
pub fn msg_flags(&self) -> c_int
pub fn get_inner(&self) -> *mut msghdr
Source§impl Msghdr
impl Msghdr
Sourcepub fn clone_struct(&self) -> Self
pub fn clone_struct(&self) -> Self
Regular clone just increases the reference count of underlying count.
clone_struct
shallow copies the content of the underlying struct on heap.
NOTE: if the struct has references to other structs these will not be copied
Must be only used on structs which has no init/clean up methods. So its danagerous to use with Aeron/AeronContext/AeronPublication/AeronSubscription More intended for AeronArchiveRecordingDescriptor
Trait Implementations§
Source§impl Default for Msghdr
impl Default for Msghdr
This will create an instance where the struct is zeroed, use with care
Auto Trait Implementations§
impl Freeze for Msghdr
impl !RefUnwindSafe for Msghdr
impl !Send for Msghdr
impl !Sync for Msghdr
impl Unpin for Msghdr
impl !UnwindSafe for Msghdr
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