pub struct Transaction {
pub direction: ServiceDirection,
pub wait: u32,
pub duration: u32,
pub status: TransactionStatus,
pub bytes_received: u64,
pub bytes_sent: u64,
}Expand description
Transaction - Format (0,2000)
Generic application transaction record sampled upon completion
§XDR Definition (sFlow Discussion)
/* Generic Application Transaction record */
/* Every Application Transaction sample must start with a generic transaction record */
/* opaque = flow_data; enterprise = 0; format = 2000 */
struct transaction {
service_direction direction; /* was this transaction observed by the server or the client */
unsigned int wait; /* time in microseconds that transaction was queued
before processing started */
unsigned int duration; /* time in microseconds from start of processing to completion */
status_value status; /* status of transaction */
unsigned hyper bytes_received; /* bytes received */
unsigned hyper bytes_send; /* bytes sent */
}Fields§
§direction: ServiceDirectionWas this transaction observed by the server or the client
wait: u32Time in microseconds that transaction was queued before processing started
duration: u32Time in microseconds from start of processing to completion
status: TransactionStatusStatus of transaction
bytes_received: u64Bytes received
bytes_sent: u64Bytes sent (spec: bytes_send)
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
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 moreSource§impl Debug for Transaction
impl Debug for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
impl Eq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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