pub struct PageRequest {
pub start_page: i64,
pub nr_pages: u32,
pub completed: u32,
pub phys_list: Vec<PagedPhysMem, MAYHEAP_LEN>,
}Fields§
§start_page: i64§nr_pages: u32§completed: u32§phys_list: Vec<PagedPhysMem, MAYHEAP_LEN>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, MAYHEAP_LEN>, start_page: i64, nr_pages: u32, ) -> Self
pub fn into_list(self) -> Vec<PagedPhysMem, MAYHEAP_LEN>
pub async fn page_in<PD: PagedDevice>( &mut self, disk_pages: &[DevicePage], device: &PD, ) -> Result<usize>
pub async fn page_out<PD: PagedDevice>( &mut self, disk_pages: &[DevicePage], device: &PD, ) -> 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