#[repr(u8)]pub enum ET_ProgramVerification {
ET_ProgramVerification_Minimal = 0,
ET_ProgramVerification_InternalConsistency = 1,
}Expand description
Types of validation that the ET_Program can do before parsing the data.
Variants§
ET_ProgramVerification_Minimal = 0
Do minimal verification of the data, ensuring that the header appears correct.
Has minimal runtime overhead.
ET_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 ET_ProgramVerification
impl Clone for ET_ProgramVerification
Source§fn clone(&self) -> ET_ProgramVerification
fn clone(&self) -> ET_ProgramVerification
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ET_ProgramVerification
Source§impl Debug for ET_ProgramVerification
impl Debug for ET_ProgramVerification
impl Eq for ET_ProgramVerification
Source§impl ExternType for ET_ProgramVerification
Available on crate feature std only.
impl ExternType for ET_ProgramVerification
Available on crate feature
std only.Source§impl Hash for ET_ProgramVerification
impl Hash for ET_ProgramVerification
Source§impl PartialEq for ET_ProgramVerification
impl PartialEq for ET_ProgramVerification
impl StructuralPartialEq for ET_ProgramVerification
Auto Trait Implementations§
impl Freeze for ET_ProgramVerification
impl RefUnwindSafe for ET_ProgramVerification
impl Send for ET_ProgramVerification
impl Sync for ET_ProgramVerification
impl Unpin for ET_ProgramVerification
impl UnsafeUnpin for ET_ProgramVerification
impl UnwindSafe for ET_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