pub struct BulkLoadPacketStats {
pub write_packets_calls: u64,
pub packets_written: u64,
pub packet_payload_bytes: u64,
pub max_packet_payload_bytes: usize,
pub max_buffered_bytes_before_write: usize,
pub buffered_bytes_after_last_write: usize,
pub finalized_packet_payload_bytes: usize,
}Available on crate feature
bulk-load-profile only.Expand description
Packet-write statistics collected by a bulk-load request.
These counters are intended for benchmarking and diagnostics. They do not change bulk-load behavior and do not include TDS packet header bytes unless a field name explicitly says otherwise.
Fields§
§write_packets_calls: u64Number of times the request attempted to drain complete packets.
packets_written: u64Number of complete bulk-load packets written before finalization.
packet_payload_bytes: u64Complete packet payload bytes written before finalization.
max_packet_payload_bytes: usizeLargest complete packet payload written before finalization.
max_buffered_bytes_before_write: usizeLargest buffered byte count observed before draining packets.
buffered_bytes_after_last_write: usizeBuffered tail bytes left after the most recent packet drain.
finalized_packet_payload_bytes: usizePayload bytes written by the final EndOfMessage packet.
Trait Implementations§
Source§impl Clone for BulkLoadPacketStats
impl Clone for BulkLoadPacketStats
Source§fn clone(&self) -> BulkLoadPacketStats
fn clone(&self) -> BulkLoadPacketStats
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 moreSource§impl Debug for BulkLoadPacketStats
impl Debug for BulkLoadPacketStats
Source§impl Default for BulkLoadPacketStats
impl Default for BulkLoadPacketStats
Source§fn default() -> BulkLoadPacketStats
fn default() -> BulkLoadPacketStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for BulkLoadPacketStats
impl PartialEq for BulkLoadPacketStats
Source§fn eq(&self, other: &BulkLoadPacketStats) -> bool
fn eq(&self, other: &BulkLoadPacketStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BulkLoadPacketStats
impl Eq for BulkLoadPacketStats
impl StructuralPartialEq for BulkLoadPacketStats
Auto Trait Implementations§
impl Freeze for BulkLoadPacketStats
impl RefUnwindSafe for BulkLoadPacketStats
impl Send for BulkLoadPacketStats
impl Sync for BulkLoadPacketStats
impl Unpin for BulkLoadPacketStats
impl UnsafeUnpin for BulkLoadPacketStats
impl UnwindSafe for BulkLoadPacketStats
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