#[repr(u8)]pub enum ProgramVerification {
ProgramVerification_Minimal = 0,
ProgramVerification_InternalConsistency = 1,
}Expand description
Types of validation that the Program can do before parsing the data.
Variants§
ProgramVerification_Minimal = 0
Do minimal verification of the data, ensuring that the header appears correct.
Has minimal runtime overhead.
ProgramVerification_InternalConsistency = 1
Do full verification of the data, ensuring that internal pointers are self-consistent and that the data has not been truncated or obviously corrupted. May not catch all types of corruption, but should guard against illegal memory operations during parsing.
Will have higher runtime overhead, scaling with the complexity of the proram data.
Trait Implementations§
Source§impl Clone for ProgramVerification
impl Clone for ProgramVerification
Source§fn clone(&self) -> ProgramVerification
fn clone(&self) -> ProgramVerification
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 ProgramVerification
impl Debug for ProgramVerification
Source§impl ExternType for ProgramVerification
Available on crate feature std only.
impl ExternType for ProgramVerification
Available on crate feature
std only.Source§impl Hash for ProgramVerification
impl Hash for ProgramVerification
Source§impl PartialEq for ProgramVerification
impl PartialEq for ProgramVerification
impl Copy for ProgramVerification
impl Eq for ProgramVerification
impl StructuralPartialEq for ProgramVerification
Auto Trait Implementations§
impl Freeze for ProgramVerification
impl RefUnwindSafe for ProgramVerification
impl Send for ProgramVerification
impl Sync for ProgramVerification
impl Unpin for ProgramVerification
impl UnwindSafe for ProgramVerification
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