[][src]Struct binsec::Detector

pub struct Detector {
    pub basic_info: Option<BinInfo>,
    pub features: Binsec,
    // some fields omitted
}

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

impl Default for Detector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.