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 (matching driver-trait/driver-opcda/
driver-simulator’s “reading/writing named string tags has no domain meaning by
itself” rule – see driver-trait’s design notes in AGENTS.md). 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
Source§fn eq(&self, other: &ReplaySample) -> bool
fn eq(&self, other: &ReplaySample) -> bool
Tests for
self and other values to be equal, and is used by ==.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>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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].