pub enum AddressSpaceError {
InvalidRegionType,
InvalidAddressRange(u64, GuestUsize),
InvalidMemorySourceType(String),
CreateMemFd(Error),
OpenFile(Error),
CreateDir(Error),
SetFileSize(Error),
UnlinkFile(Error),
}Expand description
Errors associated with virtual machine address space management.
Variants
InvalidRegionType
Invalid address space region type.
InvalidAddressRange(u64, GuestUsize)
Invalid address range.
InvalidMemorySourceType(String)
Invalid guest memory source type.
CreateMemFd(Error)
Failed to create memfd to map anonymous memory.
OpenFile(Error)
Failed to open memory file.
CreateDir(Error)
Failed to create directory.
SetFileSize(Error)
Failed to set size for memory file.
UnlinkFile(Error)
Failed to unlink memory file.
Trait Implementations
sourceimpl Debug for AddressSpaceError
impl Debug for AddressSpaceError
sourceimpl Display for AddressSpaceError
impl Display for AddressSpaceError
sourceimpl Error for AddressSpaceError
impl Error for AddressSpaceError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for AddressSpaceError
impl Send for AddressSpaceError
impl Sync for AddressSpaceError
impl Unpin for AddressSpaceError
impl !UnwindSafe for AddressSpaceError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more