[][src]Struct redox_buffer_pool::MmapEntry

pub struct MmapEntry<I, E> {
    pub pool_offset: I,
    pub size: I,
    pub pointer: NonNull<u8>,
    pub extra: E,
}

The entry type from the MmapEntries iterator, that contains all the information that the buffer pool had about that mmap, when it's being destroyed.

Only handles that were actually initialized here, are listed. A reserved range that was still pending when this iterator was created, that had its expansion handle dropped, will not be included in the iterator.

Fields

pool_offset: I

The internally allocated offset within the buffer pool, where the mmap was put.

size: I

The size that the mmap allocation had. This is exactly the same as the size inputted as part of BufferPool::begin_expand.

pointer: NonNull<u8>

The pointer that was given as part of ExpansionHandle::initialize.

This pointer is guaranteed to be a valid allocation of size size, so long as the allocation given to the pool as part of ExpansionHandle::initialize was valid (which would immediately be undefined behavior in the first case).

extra: E

The extra field that was also supplied to ExpansionHandle::initialize.

Trait Implementations

impl<I: Debug, E: Debug> Debug for MmapEntry<I, E>[src]

Auto Trait Implementations

impl<I, E> RefUnwindSafe for MmapEntry<I, E> where
    E: RefUnwindSafe,
    I: RefUnwindSafe

impl<I, E> !Send for MmapEntry<I, E>

impl<I, E> !Sync for MmapEntry<I, E>

impl<I, E> Unpin for MmapEntry<I, E> where
    E: Unpin,
    I: Unpin

impl<I, E> UnwindSafe for MmapEntry<I, E> where
    E: UnwindSafe,
    I: UnwindSafe

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.