pub enum PagerError {
OutOfRegion {
ipa: u64,
},
Source(PageSourceError),
Mach(String),
Spawn(Error),
}Expand description
Errors produced by the pager.
Variants§
OutOfRegion
The IPA the host requested falls outside any registered postcopy region.
Source(PageSourceError)
The page source surfaced an error.
Mach(String)
Mach-side error (always opaque; the OS surfaces these via kern_return_t).
Spawn(Error)
pthread_create / thread::Builder::spawn failed, typically with EAGAIN
(per-process thread limit reached). DoS-relevant on a multi-VM host.
Trait Implementations§
Source§impl Debug for PagerError
impl Debug for PagerError
Source§impl Display for PagerError
impl Display for PagerError
Source§impl Error for PagerError
impl Error for PagerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PageSourceError> for PagerError
impl From<PageSourceError> for PagerError
Source§fn from(source: PageSourceError) -> Self
fn from(source: PageSourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PagerError
impl !RefUnwindSafe for PagerError
impl Send for PagerError
impl Sync for PagerError
impl Unpin for PagerError
impl UnsafeUnpin for PagerError
impl !UnwindSafe for PagerError
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