pub enum GuestCacheReaderError {
BadMagic,
UninitialisedDirectoryVa,
NullPointer,
}Expand description
Failures from GuestCacheReader::new.
Variants§
BadMagic
The BootInfo magic field didn’t match
BootInfo::MAGIC.
UninitialisedDirectoryVa
The directory VA in BootInfo was zero — the guest hasn’t
run init_directory_va yet. Call any RPC that triggers the
init hook (e.g. nub_get_boot_info) and retry.
NullPointer
The directory VA was non-zero but, after the
directory_va -> *mut GuestDirectory cast, resulted in a
null pointer. Shouldn’t be observable in practice; covers
the cast hazard for completeness.
Trait Implementations§
Source§impl Clone for GuestCacheReaderError
impl Clone for GuestCacheReaderError
Source§fn clone(&self) -> GuestCacheReaderError
fn clone(&self) -> GuestCacheReaderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GuestCacheReaderError
impl Debug for GuestCacheReaderError
Source§impl Display for GuestCacheReaderError
impl Display for GuestCacheReaderError
Source§impl Error for GuestCacheReaderError
impl Error for GuestCacheReaderError
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 PartialEq for GuestCacheReaderError
impl PartialEq for GuestCacheReaderError
impl Copy for GuestCacheReaderError
impl Eq for GuestCacheReaderError
impl StructuralPartialEq for GuestCacheReaderError
Auto Trait Implementations§
impl Freeze for GuestCacheReaderError
impl RefUnwindSafe for GuestCacheReaderError
impl Send for GuestCacheReaderError
impl Sync for GuestCacheReaderError
impl Unpin for GuestCacheReaderError
impl UnsafeUnpin for GuestCacheReaderError
impl UnwindSafe for GuestCacheReaderError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.