[−][src]Struct binsec::Detector
Detector
defines the main interface struct for CLI. Used to store parsed cli opts
generate a Binsec struct, and output accordingly using a builder pattern.
Fields
basic_info: Option<BinInfo>
features: Binsec
Methods
impl Detector
[src]
pub fn new(_binary: String) -> Result<Self>
[src]
new()
initializes a binsec detector by setting necessary output options,
and initializing a default Binsec struct.
pub fn detect(&mut self, basic_info: bool) -> Result<&Self>
[src]
detect()
statically checks for security features for instantiated binary,
and updates default instantiated features attribute.
pub fn output(&self, format: &Format)
[src]
output()
takes a configuration of a format in order to properly display serializable or raw out.
If set to output raw data, an ASCII terminal table is also used for visual display.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Detector
impl Send for Detector
impl Sync for Detector
impl Unpin for Detector
impl UnwindSafe for Detector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,