Struct net_traits::ResourceFetchTiming
source · pub struct ResourceFetchTiming {Show 14 fields
pub domain_lookup_start: Option<CrossProcessInstant>,
pub timing_check_passed: bool,
pub timing_type: ResourceTimingType,
pub redirect_count: u16,
pub request_start: Option<CrossProcessInstant>,
pub secure_connection_start: Option<CrossProcessInstant>,
pub response_start: Option<CrossProcessInstant>,
pub fetch_start: Option<CrossProcessInstant>,
pub response_end: Option<CrossProcessInstant>,
pub redirect_start: Option<CrossProcessInstant>,
pub redirect_end: Option<CrossProcessInstant>,
pub connect_start: Option<CrossProcessInstant>,
pub connect_end: Option<CrossProcessInstant>,
pub start_time: Option<CrossProcessInstant>,
}
Fields§
§domain_lookup_start: Option<CrossProcessInstant>
§timing_check_passed: bool
§timing_type: ResourceTimingType
§redirect_count: u16
Number of redirects until final resource (currently limited to 20)
request_start: Option<CrossProcessInstant>
§secure_connection_start: Option<CrossProcessInstant>
§response_start: Option<CrossProcessInstant>
§fetch_start: Option<CrossProcessInstant>
§response_end: Option<CrossProcessInstant>
§redirect_start: Option<CrossProcessInstant>
§redirect_end: Option<CrossProcessInstant>
§connect_start: Option<CrossProcessInstant>
§connect_end: Option<CrossProcessInstant>
§start_time: Option<CrossProcessInstant>
Implementations§
source§impl ResourceFetchTiming
impl ResourceFetchTiming
pub fn new(timing_type: ResourceTimingType) -> ResourceFetchTiming
pub fn set_attribute(&mut self, attribute: ResourceAttribute)
pub(crate) fn get_time_value( &self, time: ResourceTimeValue, ) -> Option<CrossProcessInstant>
pub fn mark_timing_check_failed(&mut self)
Trait Implementations§
source§impl Clone for ResourceFetchTiming
impl Clone for ResourceFetchTiming
source§fn clone(&self) -> ResourceFetchTiming
fn clone(&self) -> ResourceFetchTiming
Returns a copy 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 ResourceFetchTiming
impl Debug for ResourceFetchTiming
source§impl<'de> Deserialize<'de> for ResourceFetchTiming
impl<'de> Deserialize<'de> for ResourceFetchTiming
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
source§impl MallocSizeOf for ResourceFetchTiming
impl MallocSizeOf for ResourceFetchTiming
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl Freeze for ResourceFetchTiming
impl RefUnwindSafe for ResourceFetchTiming
impl Send for ResourceFetchTiming
impl Sync for ResourceFetchTiming
impl Unpin for ResourceFetchTiming
impl UnwindSafe for ResourceFetchTiming
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