pub struct NetworkEvent {
pub timestamp_ms: u64,
pub url: String,
pub method: String,
pub status: Option<u16>,
pub duration_ms: Option<u64>,
pub request_size: Option<u64>,
pub response_size: Option<u64>,
pub content_type: Option<String>,
pub failed: bool,
pub error: Option<String>,
}Expand description
Network event for tracing
Fields§
§timestamp_ms: u64Timestamp (ms since trace start)
url: StringRequest URL
method: StringHTTP method
status: Option<u16>Response status code
duration_ms: Option<u64>Request duration in ms
request_size: Option<u64>Request size in bytes
response_size: Option<u64>Response size in bytes
content_type: Option<String>Content type
failed: boolWhether request failed
error: Option<String>Error message if failed
Implementations§
Trait Implementations§
Source§impl Clone for NetworkEvent
impl Clone for NetworkEvent
Source§fn clone(&self) -> NetworkEvent
fn clone(&self) -> NetworkEvent
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 NetworkEvent
impl Debug for NetworkEvent
Source§impl<'de> Deserialize<'de> for NetworkEvent
impl<'de> Deserialize<'de> for NetworkEvent
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 NetworkEvent
impl RefUnwindSafe for NetworkEvent
impl Send for NetworkEvent
impl Sync for NetworkEvent
impl Unpin for NetworkEvent
impl UnsafeUnpin for NetworkEvent
impl UnwindSafe for NetworkEvent
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