[][src]Struct aeron_rs::utils::memory_mapped_file::MemoryMappedFile

pub struct MemoryMappedFile { /* fields omitted */ }

Methods

impl MemoryMappedFile[src]

pub fn get_file_size<P: AsRef<Path>>(file: P) -> Result<u64, AeronError>[src]

pub fn create_new<P: AsRef<Path> + Into<OsString>>(
    path: P,
    offset: Index,
    size: Index
) -> Result<Self, AeronError>
[src]

pub fn map_existing<P: AsRef<Path> + Into<OsString>>(
    filename: P,
    read_only: bool
) -> Result<MemoryMappedFile, AeronError>
[src]

pub fn map_existing_part<P: AsRef<Path> + Into<OsString>>(
    filename: P,
    offset: Index,
    size: Index,
    read_only: bool
) -> Result<MemoryMappedFile, AeronError>
[src]

pub fn memory_mut_ptr(&mut self) -> &mut [u8][src]

pub fn memory_ptr(&self) -> &[u8][src]

pub fn memory_size(&self) -> Index[src]

pub fn atomic_buffer(&self, offset: Index, size: Index) -> AtomicBuffer[src]

Trait Implementations

impl Debug for MemoryMappedFile[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.