pub struct ResourceTimingBuilder { /* private fields */ }
Implementations§
Source§impl ResourceTimingBuilder
impl ResourceTimingBuilder
pub fn request_time(self, request_time: impl Into<f64>) -> ResourceTimingBuilder
pub fn proxy_start(self, proxy_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn proxy_end(self, proxy_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn dns_start(self, dns_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn dns_end(self, dns_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn connect_start( self, connect_start: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn connect_end(self, connect_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn ssl_start(self, ssl_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn ssl_end(self, ssl_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn worker_start(self, worker_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn worker_ready(self, worker_ready: impl Into<f64>) -> ResourceTimingBuilder
pub fn worker_fetch_start( self, worker_fetch_start: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn worker_respond_with_settled( self, worker_respond_with_settled: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn worker_router_evaluation_start( self, worker_router_evaluation_start: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn worker_cache_lookup_start( self, worker_cache_lookup_start: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn send_start(self, send_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn send_end(self, send_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn push_start(self, push_start: impl Into<f64>) -> ResourceTimingBuilder
pub fn push_end(self, push_end: impl Into<f64>) -> ResourceTimingBuilder
pub fn receive_headers_start( self, receive_headers_start: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn receive_headers_end( self, receive_headers_end: impl Into<f64>, ) -> ResourceTimingBuilder
pub fn build(self) -> Result<ResourceTiming, String>
Trait Implementations§
Source§impl Clone for ResourceTimingBuilder
impl Clone for ResourceTimingBuilder
Source§fn clone(&self) -> ResourceTimingBuilder
fn clone(&self) -> ResourceTimingBuilder
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 Default for ResourceTimingBuilder
impl Default for ResourceTimingBuilder
Source§fn default() -> ResourceTimingBuilder
fn default() -> ResourceTimingBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResourceTimingBuilder
impl RefUnwindSafe for ResourceTimingBuilder
impl Send for ResourceTimingBuilder
impl Sync for ResourceTimingBuilder
impl Unpin for ResourceTimingBuilder
impl UnwindSafe for ResourceTimingBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more