Struct ttfb::TtfbOutcome
source · pub struct TtfbOutcome { /* private fields */ }
Expand description
The final result of this library. It contains all the measured timings.
Implementations§
source§impl TtfbOutcome
impl TtfbOutcome
sourcepub fn user_input(&self) -> &str
pub fn user_input(&self) -> &str
Getter for the provided user input (Host or IP address).
sourcepub fn dns_lookup_duration(&self) -> Option<DurationPair>
pub fn dns_lookup_duration(&self) -> Option<DurationPair>
Returns the DurationPair
for the DNS step, if DNS lookup was necessary.
sourcepub fn tcp_connect_duration(&self) -> DurationPair
pub fn tcp_connect_duration(&self) -> DurationPair
Returns the DurationPair
for the establishment of the TCP connection.
sourcepub fn tls_handshake_duration(&self) -> Option<DurationPair>
pub fn tls_handshake_duration(&self) -> Option<DurationPair>
Returns the DurationPair
for the TLS handshake, if the TLS handshake was necessary.
sourcepub fn http_get_send_duration(&self) -> DurationPair
pub fn http_get_send_duration(&self) -> DurationPair
Returns the DurationPair
for the transmission of the HTTP GET request.
sourcepub fn ttfb_duration(&self) -> DurationPair
pub fn ttfb_duration(&self) -> DurationPair
Returns the DurationPair
for the time to first byte (TTFB) of the HTTP response.
Trait Implementations§
source§impl Clone for TtfbOutcome
impl Clone for TtfbOutcome
source§fn clone(&self) -> TtfbOutcome
fn clone(&self) -> TtfbOutcome
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 TtfbOutcome
impl Debug for TtfbOutcome
source§impl Hash for TtfbOutcome
impl Hash for TtfbOutcome
source§impl PartialEq for TtfbOutcome
impl PartialEq for TtfbOutcome
source§fn eq(&self, other: &TtfbOutcome) -> bool
fn eq(&self, other: &TtfbOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TtfbOutcome
impl StructuralPartialEq for TtfbOutcome
Auto Trait Implementations§
impl Freeze for TtfbOutcome
impl RefUnwindSafe for TtfbOutcome
impl Send for TtfbOutcome
impl Sync for TtfbOutcome
impl Unpin for TtfbOutcome
impl UnwindSafe for TtfbOutcome
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