pub struct CommandResult {
pub command: CommandType,
pub latency_ns: u64,
pub success: bool,
pub ttfb_ns: Option<u64>,
pub tx_bytes: u32,
pub rx_bytes: u32,
}Expand description
Result metadata for a completed command, passed to the on_result callback.
Fields§
§command: CommandTypeThe command type.
latency_ns: u64Latency in nanoseconds (send → response parsed).
success: boolWhether the command succeeded (no error response).
ttfb_ns: Option<u64>Time-to-first-byte in nanoseconds (not available in sequential mode).
tx_bytes: u32Bytes transmitted for this command (protocol-encoded request size).
rx_bytes: u32Bytes received for this command (protocol-encoded response size).
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
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 CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResult
impl UnwindSafe for CommandResult
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