pub enum BinaryError {
Show 13 variants
ParseError(String),
UnsupportedFormat(String),
UnsupportedArchitecture(String),
InvalidData(String),
DisassemblyError(String),
ControlFlowError(String),
SymbolError(String),
EntropyError(String),
IoError(Error),
MemoryMapError(String),
ConfigError(String),
FeatureNotAvailable(String),
Internal(String),
}
Expand description
Errors that can occur during binary analysis
Variants§
ParseError(String)
Failed to parse binary format
UnsupportedFormat(String)
Unsupported binary format
UnsupportedArchitecture(String)
Unsupported architecture
InvalidData(String)
Invalid binary data
DisassemblyError(String)
Disassembly error
ControlFlowError(String)
Control flow analysis error
SymbolError(String)
Symbol resolution error
EntropyError(String)
Entropy analysis error
IoError(Error)
I/O error
MemoryMapError(String)
Memory mapping error
ConfigError(String)
Configuration error
FeatureNotAvailable(String)
Feature not available
Internal(String)
Internal error
Implementations§
Source§impl BinaryError
impl BinaryError
Sourcepub fn unsupported_format<S: Into<String>>(format: S) -> Self
pub fn unsupported_format<S: Into<String>>(format: S) -> Self
Create a new unsupported format error
Sourcepub fn unsupported_arch<S: Into<String>>(arch: S) -> Self
pub fn unsupported_arch<S: Into<String>>(arch: S) -> Self
Create a new unsupported architecture error
Sourcepub fn invalid_data<S: Into<String>>(msg: S) -> Self
pub fn invalid_data<S: Into<String>>(msg: S) -> Self
Create a new invalid data error
Sourcepub fn disassembly<S: Into<String>>(msg: S) -> Self
pub fn disassembly<S: Into<String>>(msg: S) -> Self
Create a new disassembly error
Sourcepub fn control_flow<S: Into<String>>(msg: S) -> Self
pub fn control_flow<S: Into<String>>(msg: S) -> Self
Create a new control flow error
Sourcepub fn memory_map<S: Into<String>>(msg: S) -> Self
pub fn memory_map<S: Into<String>>(msg: S) -> Self
Create a new memory map error
Sourcepub fn feature_not_available<S: Into<String>>(feature: S) -> Self
pub fn feature_not_available<S: Into<String>>(feature: S) -> Self
Create a new feature not available error
Trait Implementations§
Source§impl Debug for BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
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<Error> for BinaryError
impl From<Error> for BinaryError
Auto Trait Implementations§
impl Freeze for BinaryError
impl !RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl !UnwindSafe for BinaryError
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