Struct aiofut::AIOManager
source · [−]pub struct AIOManager { /* private fields */ }
Expand description
Manager all AIOs.
Implementations
sourceimpl AIOManager
impl AIOManager
pub fn read(
&self,
fd: RawFd,
offset: u64,
length: usize,
priority: Option<u16>
) -> AIOFutureⓘNotable traits for AIOFutureimpl Future for AIOFuture type Output = AIOResult;
pub fn write(
&self,
fd: RawFd,
offset: u64,
data: Box<[u8]>,
priority: Option<u16>
) -> AIOFutureⓘNotable traits for AIOFutureimpl Future for AIOFuture type Output = AIOResult;
sourcepub fn copy_data(&self, aio_id: u64) -> Option<Vec<u8>>
pub fn copy_data(&self, aio_id: u64) -> Option<Vec<u8>>
Get a copy of the current data in the buffer.
sourcepub fn get_npending(&self) -> usize
pub fn get_npending(&self) -> usize
Get the number of pending AIOs (approximation).
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AIOManager
impl Send for AIOManager
impl !Sync for AIOManager
impl Unpin for AIOManager
impl !UnwindSafe for AIOManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more