starina_api/
vmspace.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! A virtual address space object.
use crate::handle::OwnedHandle;

/// A virtual address space object.
#[derive(Debug)]
pub struct VmSpace {
    handle: OwnedHandle,
}

impl VmSpace {
    /// Instantiates the object from the given handle.
    pub fn from_handle(handle: OwnedHandle) -> VmSpace {
        VmSpace { handle }
    }

    /// Returns the handle.
    pub fn handle(&self) -> &OwnedHandle {
        &self.handle
    }
}