pub struct PageRequest {
pub start_page: i64,
pub nr_pages: u32,
pub completed: u32,
pub phys_list: Vec<PagedPhysMem>,
}
Fields§
§start_page: i64
§nr_pages: u32
§completed: u32
§phys_list: Vec<PagedPhysMem>
Implementations§
Source§impl PageRequest
impl PageRequest
pub fn new(start_page: i64, nr_pages: u32) -> Self
pub fn new_from_list( phys_list: Vec<PagedPhysMem>, start_page: i64, nr_pages: u32, ) -> Self
pub fn into_list(self) -> Vec<PagedPhysMem>
pub fn page_in( &mut self, disk_pages: &[DevicePage], device: &dyn PagedDevice, ) -> Result<usize>
pub fn page_out( &mut self, disk_pages: &[DevicePage], device: &dyn PagedDevice, ) -> Result<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PageRequest
impl !ObjSafe for PageRequest
impl RefUnwindSafe for PageRequest
impl Send for PageRequest
impl StoreCopy for PageRequest
impl Sync for PageRequest
impl Unpin for PageRequest
impl UnwindSafe for PageRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more