[−][src]Struct linux_aio_tokio::LockedBuf
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,