pub struct InferenceResults {
    pub analysis_type: InferenceType,
    pub num_sat_networks: u128,
    pub comp_time: u128,
    pub summary_message: String,
    pub progress_statuses: Vec<InferenceStatusReport>,
    pub num_update_fns_per_var: HashMap<String, usize>,
}Expand description
Object encompassing inference results that are to be send to frontend. It does not contain any intermediate or raw results, these are kept on backend only.
Fields§
§analysis_type: InferenceTypeType of the conducted inference analysis.
num_sat_networks: u128Number of satisfying networks.
comp_time: u128Computation time in miliseconds.
summary_message: StringString message summarizing computation to be displayed/logged on frontend.
progress_statuses: Vec<InferenceStatusReport>All status updates of the solver (from creation to finish).
num_update_fns_per_var: HashMap<String, usize>Number of admissible update functions per each variable.
Implementations§
source§impl InferenceResults
 
impl InferenceResults
sourcepub fn new(
    analysis_type: InferenceType,
    num_sat_networks: u128,
    comp_time: Duration,
    summary_message: &str,
    progress_statuses: Vec<InferenceStatusReport>,
    num_update_fns_per_var: HashMap<String, usize>,
) -> InferenceResults
 
pub fn new( analysis_type: InferenceType, num_sat_networks: u128, comp_time: Duration, summary_message: &str, progress_statuses: Vec<InferenceStatusReport>, num_update_fns_per_var: HashMap<String, usize>, ) -> InferenceResults
Create new InferenceResults given all the details.
sourcepub fn extend_summary(&mut self, new_message: &str)
 
pub fn extend_summary(&mut self, new_message: &str)
Append string to the end of current metadata.
sourcepub fn format_to_report(&self) -> String
 
pub fn format_to_report(&self) -> String
Prepare a formated summary of inference results, basically a “report” on the computation progress and results.
Trait Implementations§
source§impl Clone for InferenceResults
 
impl Clone for InferenceResults
source§fn clone(&self) -> InferenceResults
 
fn clone(&self) -> InferenceResults
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for InferenceResults
 
impl Debug for InferenceResults
source§impl<'de> Deserialize<'de> for InferenceResults
 
impl<'de> Deserialize<'de> for InferenceResults
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'de> JsonSerde<'de> for InferenceResults
 
impl<'de> JsonSerde<'de> for InferenceResults
source§fn to_json_str(&self) -> String
 
fn to_json_str(&self) -> String
Wrapper for json serialization.
source§fn to_pretty_json_str(&self) -> String
 
fn to_pretty_json_str(&self) -> String
Wrapper for pretty json serialization with indentation.
source§impl PartialEq for InferenceResults
 
impl PartialEq for InferenceResults
source§impl Serialize for InferenceResults
 
impl Serialize for InferenceResults
impl StructuralPartialEq for InferenceResults
Auto Trait Implementations§
impl Freeze for InferenceResults
impl RefUnwindSafe for InferenceResults
impl Send for InferenceResults
impl Sync for InferenceResults
impl Unpin for InferenceResults
impl UnwindSafe for InferenceResults
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)