pub enum InvalidProgram {
CodeTooLarge {
len: usize,
},
DataOutOfRange {
end: u64,
},
RegionLengthMismatch {
kind: RegionKind,
expected: usize,
actual: usize,
},
NoEndpoints,
}Expand description
Why a ProgramBlob is not well-formed.
Variants§
CodeTooLarge
code.len() exceeds MAX_CODE_SIZE — code would overlap
DATA_BASE.
DataOutOfRange
The data regions run past the 4 GiB guest address space.
RegionLengthMismatch
A region’s backing buffer length disagrees with its page count.
NoEndpoints
A program with no entry point can never be invoked.
Trait Implementations§
Source§impl Clone for InvalidProgram
impl Clone for InvalidProgram
Source§fn clone(&self) -> InvalidProgram
fn clone(&self) -> InvalidProgram
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 InvalidProgram
impl Debug for InvalidProgram
Source§impl Display for InvalidProgram
impl Display for InvalidProgram
Source§impl Error for InvalidProgram
impl Error for InvalidProgram
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<InvalidProgram> for DecodeError
impl From<InvalidProgram> for DecodeError
Source§fn from(e: InvalidProgram) -> Self
fn from(e: InvalidProgram) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidProgram
impl PartialEq for InvalidProgram
impl Eq for InvalidProgram
impl StructuralPartialEq for InvalidProgram
Auto Trait Implementations§
impl Freeze for InvalidProgram
impl RefUnwindSafe for InvalidProgram
impl Send for InvalidProgram
impl Sync for InvalidProgram
impl Unpin for InvalidProgram
impl UnsafeUnpin for InvalidProgram
impl UnwindSafe for InvalidProgram
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