Type Alias base::sys::unix::IoBuf

source ·
pub type IoBuf = iovec;
Expand description

Cross platform binary compatible iovec. See crate::IoBufMut for documentation.

Aliased Type§

struct IoBuf {
    pub iov_base: *mut c_void,
    pub iov_len: usize,
}

Fields§

§iov_base: *mut c_void§iov_len: usize

Trait Implementations§

source§

impl PlatformIoBuf for IoBuf

source§

fn new(ptr: *mut u8, len: usize) -> Self

source§

fn len(&self) -> usize

source§

fn ptr(&self) -> *mut u8

source§

fn set_len(&mut self, len: usize)

source§

fn set_ptr(&mut self, ptr: *mut u8)

§

impl PartialEq for iovec

§

fn eq(&self, other: &iovec) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for iovec

§

impl Clone for iovec

§

fn clone(&self) -> iovec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for iovec

§

impl Hash for iovec

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl StructuralPartialEq for iovec

§

impl Debug for iovec

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more