Struct retdec::decompilation::Decompilation
[−]
[src]
pub struct Decompilation { /* fields omitted */ }
Decompilation from the decompiler service.
Methods
impl Decompilation
[src]
fn id(&self) -> &str
Returns the ID of the decompilation.
Does not access the API.
fn finished(&self) -> bool
Has the decompilation finished?
Does not access the API, so the returned value may be outdated. In a
greater detail, when it returns true
, the decompilation has surely
finished. However, when it returns false
, the decompilation might or
might not have finished. If you want to have an up-to-date information,
use has_finished()
instead.
fn has_finished(&mut self) -> Result<bool>
Has the decompilation finished?
Accesses the API.
fn succeeded(&self) -> bool
Has the decompilation succeeded?
Does not access the API, so the returned value may be outdated. If you
want to have an up-to-date information, use has_succeeded()
instead.
The returned value makes sense only when the decompilation has finished.
fn has_succeeded(&mut self) -> Result<bool>
Has the decompilation succeeded?
Accesses the API.
The returned value makes sense only when the decompilation has finished.
fn failed(&self) -> bool
Has the decompilation failed?
Does not access the API, so the returned value may be outdated. If you
want to have an up-to-date information, use has_failed()
instead.
The returned value makes sense only when the decompilation has finished.
fn has_failed(&mut self) -> Result<bool>
Has the decompilation failed?
Accesses the API.
The returned value makes sense only when the decompilation has finished.
fn error(&self) -> Option<&str>
Returns the error message (if any).
Does not access the API, so the returned value may be outdated. If you
want to have an up-to-date information, use get_error()
instead.
Calling this method makes sense only when the decompilation has failed.
Otherwise, it will always return None
.
fn get_error(&mut self) -> Result<Option<&str>>
Returns the error message (if any).
Accesses the API.
Calling this method makes sense only when the decompilation has failed.
Otherwise, it will always return None
.
fn wait_until_finished(&mut self) -> Result<()>
Waits until the decompilation has finished.
When this method returns Ok()
, the decompilation has finished.
Accesses the API.
fn get_output_hll_code(&mut self) -> Result<String>
Returns the output code in the target high-level language (HLL).
The HLL type (C, Python') depends on the used decompilation arguments.
This function should be called only after the decompilation has successfully finished.
Accesses the API.
fn get_output_hll_code_as_file(&mut self) -> Result<File>
Returns the output code in the target high-level language (HLL) as a file.
The HLL type (C, Python') depends on the used decompilation arguments.
This function should be called only after the decompilation has successfully finished.
Accesses the API.