[][src]Trait vmm_sys_util::sock_ctrl_msg::IntoIovec

pub unsafe trait IntoIovec {
    fn as_ptr(&self) -> *const c_void;
fn size(&self) -> usize; }

Trait for types that can be converted into an iovec that can be referenced by a syscall for the lifetime of this object.

This is marked unsafe because the implementation must ensure that the returned pointer and size is valid and that the lifetime of the returned pointer is at least that of the trait object.

Required methods

fn as_ptr(&self) -> *const c_void

Gets the base pointer of this iovec.

fn size(&self) -> usize

Gets the size in bytes of this iovec.

Loading content...

Implementations on Foreign Types

impl<'a> IntoIovec for &'a [u8][src]

Loading content...

Implementors

Loading content...