pub enum TrafficEventKind {
Request {
method: String,
uri: String,
headers: HashMap<String, String>,
body_size: usize,
},
Response {
status: u16,
headers: HashMap<String, String>,
body_size: usize,
},
SseEvent {
event_type: Option<String>,
data_preview: String,
},
WebSocketMessage {
is_binary: bool,
size: usize,
},
Error {
message: String,
},
Connection {
peer: String,
connected: bool,
},
Conversion {
source_format: String,
target_format: String,
body_size: usize,
},
}Expand description
Kind-specific payload for a traffic event.
Variants§
Trait Implementations§
Source§impl Clone for TrafficEventKind
impl Clone for TrafficEventKind
Source§fn clone(&self) -> TrafficEventKind
fn clone(&self) -> TrafficEventKind
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 TrafficEventKind
impl Debug for TrafficEventKind
Source§impl<'de> Deserialize<'de> for TrafficEventKind
impl<'de> Deserialize<'de> for TrafficEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TrafficEventKind
impl RefUnwindSafe for TrafficEventKind
impl Send for TrafficEventKind
impl Sync for TrafficEventKind
impl Unpin for TrafficEventKind
impl UnsafeUnpin for TrafficEventKind
impl UnwindSafe for TrafficEventKind
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