Struct lrs::mem_map::MemMap

Syntax

struct MemMap {
    /* private fields */
}

Static methods

NameDescription
anon

Creates an memory mapping which is not backed by a file.

file

Creates an memory mapping of a file.

Methods

ReceiverNameDescription
&mut selfadvise

Advise the kernel of a certain memory usage pattern.

&selfprotect

Change the memory protection of a region.

&mut selfresize

Resizes an existing mapping.

&selfsync

Flushes changes to a mapped file to the filesystem.

Trait implementations

NameDescription
Deref

Objects that implement the immutable dereference operator.

DerefMut

Objects that implement the mutable dereference operator.

Drop

Objects with a destructor.

UndefState

Types that are not valid when they contain certain bit patterns.