pub enum FromRangesError {
Collection(GuestRegionCollectionError),
MmapRegion(MmapRegionError),
InvalidGuestRegion,
}Available on crate feature
backend-mmap only.Expand description
Errors that can happen during GuestMemoryMmap::from_ranges and related functions.
Variants§
Collection(GuestRegionCollectionError)
Error during construction of GuestMemoryMmap
MmapRegion(MmapRegionError)
Error while allocating raw mmap region
InvalidGuestRegion
A combination of region length and guest address would overflow.
Trait Implementations§
Source§impl Debug for FromRangesError
impl Debug for FromRangesError
Source§impl Display for FromRangesError
impl Display for FromRangesError
Source§impl Error for FromRangesError
impl Error for FromRangesError
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<Error> for FromRangesError
impl From<Error> for FromRangesError
Source§fn from(source: MmapRegionError) -> Self
fn from(source: MmapRegionError) -> Self
Converts to this type from the input type.
Source§impl From<GuestRegionCollectionError> for FromRangesError
impl From<GuestRegionCollectionError> for FromRangesError
Source§fn from(source: GuestRegionCollectionError) -> Self
fn from(source: GuestRegionCollectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FromRangesError
impl !RefUnwindSafe for FromRangesError
impl Send for FromRangesError
impl Sync for FromRangesError
impl Unpin for FromRangesError
impl !UnwindSafe for FromRangesError
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