[][src]Struct linux_aio_tokio::LockedBuf

pub struct LockedBuf { /* fields omitted */ }

Buffer with fixed capacity, locked to RAM. It prevents memory from being paged to the swap area

This is required to work with AIO operations.

Methods

impl LockedBuf[src]

pub fn with_size(size: usize) -> Result<LockedBuf, LockedBufError>[src]

Create with desired capacity

pub fn size(&self) -> usize[src]

Return current capacity

Trait Implementations

impl AsMut<[u8]> for LockedBuf[src]

impl AsRef<[u8]> for LockedBuf[src]

impl Debug for LockedBuf[src]

impl Send for LockedBuf[src]

impl Sync for LockedBuf[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.