pub struct ControlObservationReply {
pub value: i64,
pub age_seconds: f64,
}Expand description
Worker-relative age; never transfer a process-local monotonic timestamp. Receivers must also account for the request/response transit time.
Fields§
§value: i64§age_seconds: f64Implementations§
Source§impl ControlObservationReply
impl ControlObservationReply
pub fn normalize(&self, request_started: Instant) -> Result<ControlObservation>
Sourcepub fn observed_at(&self, request_started: Instant) -> Result<Instant>
pub fn observed_at(&self, request_started: Instant) -> Result<Instant>
Conservatively include all IPC/worker time by subtracting the reported age from request admission, never from response receipt. Process-local monotonic clock epochs do not need to agree across the pipe.
Trait Implementations§
Source§impl Clone for ControlObservationReply
impl Clone for ControlObservationReply
Source§impl Debug for ControlObservationReply
impl Debug for ControlObservationReply
Source§impl<'de> Deserialize<'de> for ControlObservationReply
impl<'de> Deserialize<'de> for ControlObservationReply
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
Auto Trait Implementations§
impl Freeze for ControlObservationReply
impl RefUnwindSafe for ControlObservationReply
impl Send for ControlObservationReply
impl Sync for ControlObservationReply
impl Unpin for ControlObservationReply
impl UnsafeUnpin for ControlObservationReply
impl UnwindSafe for ControlObservationReply
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