pub struct DatabaseInfo {
pub bitness: Option<Bitness>,
pub image_base: Option<Address>,
pub processor: Option<String>,
pub file_type: Option<String>,
pub input_path: Option<String>,
pub root_filename: Option<String>,
}Expand description
An owned, Send snapshot of database-wide metadata, from Database::info.
Every field is resolved and copied out at snapshot time, so a DatabaseInfo carries no borrow
on the Database and can be inspected on any thread. Reading it is a handful of kernel
calls, so grab it once rather than per field.
Fields§
§bitness: Option<Bitness>Application addressing width, or None if the database reports an unrecognized one.
image_base: Option<Address>Preferred load address (image base), when the format records one.
processor: Option<String>Processor module id (e.g. metapc).
file_type: Option<String>Human-readable input file format (e.g. Portable executable for 80386 (PE)).
input_path: Option<String>Full path of the analyzed input file.
root_filename: Option<String>Base file name of the input.
Trait Implementations§
Source§impl Clone for DatabaseInfo
impl Clone for DatabaseInfo
Source§fn clone(&self) -> DatabaseInfo
fn clone(&self) -> DatabaseInfo
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 moreSource§impl Debug for DatabaseInfo
impl Debug for DatabaseInfo
Source§impl<'de> Deserialize<'de> for DatabaseInfo
impl<'de> Deserialize<'de> for DatabaseInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DatabaseInfo
Source§impl Hash for DatabaseInfo
impl Hash for DatabaseInfo
Source§impl PartialEq for DatabaseInfo
impl PartialEq for DatabaseInfo
Source§impl Serialize for DatabaseInfo
impl Serialize for DatabaseInfo
impl StructuralPartialEq for DatabaseInfo
Auto Trait Implementations§
impl Freeze for DatabaseInfo
impl RefUnwindSafe for DatabaseInfo
impl Send for DatabaseInfo
impl Sync for DatabaseInfo
impl Unpin for DatabaseInfo
impl UnsafeUnpin for DatabaseInfo
impl UnwindSafe for DatabaseInfo
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