Trait MsgBufMut

Source
pub unsafe trait MsgBufMut: Unpin + 'static {
    // Required method
    fn write_msghdr_ptr(&mut self) -> *mut msghdr;
}
Expand description

An io_uring compatible msg buffer.

§Safety

See the safety note of the methods.

Required Methods§

Source

fn write_msghdr_ptr(&mut self) -> *mut msghdr

Returns a raw pointer to msghdr struct.

§Safety

The implementation must ensure that, while the runtime owns the value, the pointer returned by stable_mut_ptr does not change. Also, the value pointed must be a valid msghdr struct.

Implementors§