From 74d1b6fd9991d1fb7dc19f09b06f7b2277874ece Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 16 Apr 2022 20:25:59 +0000 Subject: deploy: 38cd31ed203999122c500d389de38bb051ce979e --- kvm_rs/struct.UserMem.html | 49 ++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 21 deletions(-) (limited to 'kvm_rs/struct.UserMem.html') diff --git a/kvm_rs/struct.UserMem.html b/kvm_rs/struct.UserMem.html index 1a594bb..0a28ef6 100644 --- a/kvm_rs/struct.UserMem.html +++ b/kvm_rs/struct.UserMem.html @@ -1,27 +1,34 @@ -UserMem in kvm_rs - Rust - -

Struct kvm_rs::UserMem[][src]

pub struct UserMem { /* fields omitted */ }
Expand description

Wrapper to safely allocate memory for guest VMs.

+UserMem in kvm_rs - Rust + +
+

Struct kvm_rs::UserMem

source · []
pub struct UserMem { /* private fields */ }
Expand description

Wrapper to safely allocate memory for guest VMs.

The underlying memory is freed automatically once the UserMem instance is dropped.

Memory can be mapped into a guest VM with Vm::set_user_memory_region.

-

Implementations

Allocate a zero-initialized memory region of len bytes.

-

Allocate a zero-initialized memory region of len bytes and initialize the first bytes +

Implementations

Allocate a zero-initialized memory region of len bytes.

+

Allocate a zero-initialized memory region of len bytes and initialize the first bytes with init_from.

-

Panics

+
Panics

Panics if init_from is larger than the memory size len.

-

Load the bytes stored in data into memory at physical address addr.

-

Panics

+

Load the bytes stored in data into memory at physical address addr.

+
Panics

Panics if addr + data.len is larger than the memory size len.

-

Trait Implementations

Performs the conversion.

-

Performs the conversion.

-

Free underlying memory.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
\ No newline at end of file +

Trait Implementations

Performs the conversion.

+

Performs the conversion.

+

Free underlying memory.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
+ \ No newline at end of file -- cgit v1.2.3