pub enum GuestRegionCollectionError {
NoMemoryRegion,
MemoryRegionOverlap,
UnsortedMemoryRegions,
}Expand description
Errors that can occur when dealing with GuestRegionCollections
Variants§
NoMemoryRegion
No memory region found.
MemoryRegionOverlap
Some of the memory regions intersect with each other.
UnsortedMemoryRegions
The provided memory regions haven’t been sorted.
Trait Implementations§
Source§impl Debug for GuestRegionCollectionError
impl Debug for GuestRegionCollectionError
Source§impl Display for GuestRegionCollectionError
impl Display for GuestRegionCollectionError
Source§impl Error for GuestRegionCollectionError
impl Error for GuestRegionCollectionError
1.30.0 · 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<GuestRegionCollectionError> for FromRangesError
Available on crate feature backend-mmap only.
impl From<GuestRegionCollectionError> for FromRangesError
Available on crate feature
backend-mmap only.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 GuestRegionCollectionError
impl RefUnwindSafe for GuestRegionCollectionError
impl Send for GuestRegionCollectionError
impl Sync for GuestRegionCollectionError
impl Unpin for GuestRegionCollectionError
impl UnwindSafe for GuestRegionCollectionError
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