Enum srcsrv::SourceRetrievalMethod [−][src]
pub enum SourceRetrievalMethod {
Download {
url: String,
},
ExecuteCommand {
command: String,
env: HashMap<String, String>,
version_ctrl: Option<String>,
target_path: String,
error_persistence_version_control: Option<String>,
},
Other {
raw_var_values: EvalVarMap,
},
}Expand description
Describes how the source file can be obtained.
Variants
The source can be downloaded from the web, at the given URL.
Fields of Download
url: StringEvaluating the given command on the Windows Command shell with the given
environment variables will create the source file at target_path.
Fields of ExecuteCommand
command: StringThe command to execute.
env: HashMap<String, String>The environment veriables to set during command execution.
version_ctrl: Option<String>An optional version control string.
target_path: StringThe path at which the extracted file will appear once the command has run.
error_persistence_version_control: Option<String>An optional string which identifies files that use the same version control
system. Used for error persistence.
If a file encounters an error during command execution, and the command output
matches one of the strings in SrcSrvStream::error_persistence_command_output_strings(),
execution of the command should be skipped for all future entries with the same
error_persistence_version_control value.
See https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/language-specification-1#handling-server-errors.
Grab bag for other cases. Please file issues about any extra cases you need.
Fields of Other
raw_var_values: EvalVarMapTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SourceRetrievalMethod
impl Send for SourceRetrievalMethod
impl Sync for SourceRetrievalMethod
impl Unpin for SourceRetrievalMethod
impl UnwindSafe for SourceRetrievalMethod
Blanket Implementations
Mutably borrows from an owned value. Read more