Struct dependency_runner::LookupQuery[][src]

pub struct LookupQuery {
    pub system: Option<WindowsSystem>,
    pub user_path: Vec<PathBuf>,
    pub target_exe: PathBuf,
    pub app_dir: PathBuf,
    pub working_dir: PathBuf,
    pub max_depth: Option<usize>,
    pub skip_system_dlls: bool,
    pub extract_symbols: bool,
}

Complete specification of a search task

Fields

system: Option<WindowsSystem>

Path to the root of a Windows installation

user_path: Vec<PathBuf>

Additional executable search path set by the user

target_exe: PathBuf

Path to the target executable

app_dir: PathBuf

Parent directory of target_exe, cached

working_dir: PathBuf

Working directory as it should appear in the search path

max_depth: Option<usize>

Maximum library recursion depth for the search

skip_system_dlls: bool

Skip searching dependencies of DLLs found in system directories

extract_symbols: bool

Extract symbols from found DLLs

Implementations

impl LookupQuery[src]

pub fn deduce_from_executable_location<P: AsRef<Path>>(
    target_exe: P
) -> Result<Self, LookupError>
[src]

autodetects the settings with sensible defaults

The working directory will be set to the one containing the executable (i.e. the app_dir)

pub fn update_from_vcx_debugging_configuration(
    &mut self,
    debugging_configuration: &VcxDebuggingConfiguration
)
[src]

update this Query with the information contained in a .vcxproj.user file

Will set the working directory and the PATH to the ones specified in the file

pub fn read_from_vcx_executable_information(
    exe_info: &VcxExecutableInformation
) -> Result<Self, LookupError>
[src]

create a Query with the information contained in a .vcxproj file

Will extract the executable location from the file If the respective .vcxproj.user file is found, the contained information will be used

Trait Implementations

impl Clone for LookupQuery[src]

impl Debug for LookupQuery[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.