pub enum Direction {
Read,
Write,
Other,
}Expand description
Direction of data flow for a network event.
Read and Write correspond to the socket operation (recv/send) observed
by the tracing layer. Whether Read or Write carries requests vs. responses
depends on the vantage point: on a client, Write = outgoing requests and
Read = incoming responses; on a server the mapping is reversed. The
collator classifies messages by inspecting content (pseudo-headers), not
by assuming a fixed direction-to-role mapping.
Variants§
Read
Data received via a socket read (recv) operation
Write
Data sent via a socket write (send) operation
Other
Non-data events (ignored by collator)
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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