pub struct NetworkEventActor {Show 22 fields
pub name: String,
pub resource_id: u64,
pub is_xhr: bool,
pub request_url: String,
pub request_method: Method,
pub request_started: SystemTime,
pub request_time_stamp: i64,
pub request_destination: Destination,
pub request_headers_raw: Option<HeaderMap>,
pub request_body: Option<Vec<u8>>,
pub request_cookies: Option<RequestCookiesMsg>,
pub request_headers: Option<RequestHeadersMsg>,
pub response_headers_raw: Option<HeaderMap>,
pub response_body: Option<Vec<u8>>,
pub response_content: Option<ResponseContentMsg>,
pub response_start: Option<ResponseStartMsg>,
pub response_cookies: Option<ResponseCookiesMsg>,
pub response_headers: Option<ResponseHeadersMsg>,
pub total_time: Duration,
pub security_state: String,
pub event_timing: Option<Timings>,
pub watcher_name: String,
}
Fields§
§name: String
§resource_id: u64
§is_xhr: bool
§request_url: String
§request_method: Method
§request_started: SystemTime
§request_time_stamp: i64
§request_destination: Destination
§request_headers_raw: Option<HeaderMap>
§request_body: Option<Vec<u8>>
§request_headers: Option<RequestHeadersMsg>
§response_headers_raw: Option<HeaderMap>
§response_body: Option<Vec<u8>>
§response_content: Option<ResponseContentMsg>
§response_start: Option<ResponseStartMsg>
§response_headers: Option<ResponseHeadersMsg>
§total_time: Duration
§security_state: String
§event_timing: Option<Timings>
§watcher_name: String
Implementations§
Source§impl NetworkEventActor
impl NetworkEventActor
pub fn new( name: String, resource_id: u64, watcher_name: String, ) -> NetworkEventActor
pub fn add_request(&mut self, request: DevtoolsHttpRequest)
pub fn add_response(&mut self, response: DevtoolsHttpResponse)
pub fn event_actor(&self) -> EventActor
pub fn response_start(response: &DevtoolsHttpResponse) -> ResponseStartMsg
pub fn response_content( &mut self, response: &DevtoolsHttpResponse, ) -> Option<ResponseContentMsg>
pub fn response_headers(response: &DevtoolsHttpResponse) -> ResponseHeadersMsg
pub fn request_headers(request: &DevtoolsHttpRequest) -> RequestHeadersMsg
pub fn total_time(request: &DevtoolsHttpRequest) -> Duration
pub fn event_timing(request: &DevtoolsHttpRequest) -> Timings
pub fn is_text_mime(mime: &str) -> bool
fn insert_serialized_map<T: Serialize>( map: &mut Map<String, Value>, obj: &Option<T>, )
pub fn resource_updates(&self) -> NetworkEventResource
Trait Implementations§
Source§impl Actor for NetworkEventActor
impl Actor for NetworkEventActor
Auto Trait Implementations§
impl Freeze for NetworkEventActor
impl RefUnwindSafe for NetworkEventActor
impl Send for NetworkEventActor
impl Sync for NetworkEventActor
impl Unpin for NetworkEventActor
impl UnwindSafe for NetworkEventActor
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert