pub struct RuntimeWorkResult {
pub item_id: u64,
pub tag: u64,
pub iterations: u32,
pub mean_dps_x10: u32,
pub m2_dps_bits: u64,
pub telemetry_pb: Option<Vec<u8>>,
}Expand description
Compact result for one executed work item, mirroring the BatchWorkResult proto.
Fields§
§item_id: u64§tag: u64§iterations: u32§mean_dps_x10: u32§m2_dps_bits: u64§telemetry_pb: Option<Vec<u8>>Encoded ChunkTelemetry, present only for full-fidelity items.
Implementations§
Source§impl RuntimeWorkResult
impl RuntimeWorkResult
Sourcepub fn from_proto(result: &BatchWorkResult) -> Self
pub fn from_proto(result: &BatchWorkResult) -> Self
Build from the protobuf wire form.
Sourcepub fn to_proto(&self) -> BatchWorkResult
pub fn to_proto(&self) -> BatchWorkResult
Convert to the protobuf wire form.
Trait Implementations§
Source§impl Clone for RuntimeWorkResult
impl Clone for RuntimeWorkResult
Source§fn clone(&self) -> RuntimeWorkResult
fn clone(&self) -> RuntimeWorkResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RuntimeWorkResult
impl RefUnwindSafe for RuntimeWorkResult
impl Send for RuntimeWorkResult
impl Sync for RuntimeWorkResult
impl Unpin for RuntimeWorkResult
impl UnsafeUnpin for RuntimeWorkResult
impl UnwindSafe for RuntimeWorkResult
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more