pub struct Sample {
pub started_at: Instant,
pub completed_at: Instant,
pub bytes: u64,
pub outcome: Outcome,
}Expand description
A single observation of an operation’s behavior, fed to a Controller.
The started_at / completed_at pair should enclose the actual syscall or
network round-trip, not the permit acquisition; the controller reasons
about service time at the bottleneck, not queueing time ahead of it.
Fields§
§started_at: InstantWhen the operation was submitted to the underlying system.
completed_at: InstantWhen the operation reported completion.
bytes: u64Bytes transferred. Zero for metadata operations.
outcome: OutcomeHow the operation concluded.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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