completeio 0.1.0

Completion based IO drivers and async runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io::{IoSlice, IoSliceMut};

pub trait AsIoSlices<'arena>: 'arena {
    /// # Safety
    ///
    /// The return slice will not live longer than self.
    unsafe fn as_io_slices(&self) -> &[IoSlice<'_>];
}

pub trait AsIoSlicesMut<'arena>: 'arena {
    /// # Safety
    ///
    /// The return slice will not live longer than self.
    unsafe fn as_io_slices_mut(&mut self) -> &mut [IoSliceMut<'arena>];

    fn set_init(&mut self, len: usize);
}