pub struct VerificationResult {
pub success: bool,
pub local_hash: BinaryHashResult,
pub remote_hash: BinaryHashResult,
pub rsync_up_ms: u64,
pub compilation_ms: u64,
pub rsync_down_ms: u64,
pub total_ms: u64,
pub error: Option<String>,
}Expand description
Result of a remote compilation verification test.
Fields§
§success: boolWhether the verification succeeded (hashes match).
local_hash: BinaryHashResultHash result from the local build.
remote_hash: BinaryHashResultHash result from the remote build.
rsync_up_ms: u64Time spent syncing files to the worker (ms).
compilation_ms: u64Time spent compiling on the worker (ms).
rsync_down_ms: u64Time spent syncing artifacts back (ms).
total_ms: u64Total test duration (ms).
error: Option<String>Error message if verification failed.
Implementations§
Source§impl VerificationResult
impl VerificationResult
Sourcepub fn speedup_factor(&self, local_compilation_ms: u64) -> Option<f64>
pub fn speedup_factor(&self, local_compilation_ms: u64) -> Option<f64>
Get the speedup factor (local time / remote time). Returns None if either time is zero.
Trait Implementations§
Source§impl Clone for VerificationResult
impl Clone for VerificationResult
Source§fn clone(&self) -> VerificationResult
fn clone(&self) -> VerificationResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VerificationResult
impl RefUnwindSafe for VerificationResult
impl Send for VerificationResult
impl Sync for VerificationResult
impl Unpin for VerificationResult
impl UnsafeUnpin for VerificationResult
impl UnwindSafe for VerificationResult
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