pub struct ReplaySample {
pub time: DateTime<Utc>,
pub pv: f32,
}Expand description
One recorded (time, PV) sample from a captured trace – the two fields
ReplayDriver actually needs to serve a PV read.
Deliberately not bhtune-core’s Tick: this crate stays free of a bhtune-core
dependency in production code because reading and writing named string tags has no domain
meaning by itself. Also deliberately not
the full golden-fixture JSON schema crates/bhtune-core/tests/golden_replay.rs owns
(config, direction, initial, pv_range, template_name, each tick’s expected
block, expected_final) – none of that is needed to serve a replay, only to
validate one, which stays the calling test’s job.
Fields§
§time: DateTime<Utc>§pv: f32Trait Implementations§
Source§impl Clone for ReplaySample
impl Clone for ReplaySample
Source§fn clone(&self) -> ReplaySample
fn clone(&self) -> ReplaySample
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 moreimpl Copy for ReplaySample
Source§impl Debug for ReplaySample
impl Debug for ReplaySample
Source§impl PartialEq for ReplaySample
impl PartialEq for ReplaySample
impl StructuralPartialEq for ReplaySample
Auto Trait Implementations§
impl Freeze for ReplaySample
impl RefUnwindSafe for ReplaySample
impl Send for ReplaySample
impl Sync for ReplaySample
impl Unpin for ReplaySample
impl UnsafeUnpin for ReplaySample
impl UnwindSafe for ReplaySample
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> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].