pub struct HttpReply<'a> {Show 18 fields
pub af: AddressFamily,
pub bsize: Option<u64>,
pub dst_addr: Cow<'a, str>,
pub err: Option<Cow<'a, str>>,
pub header: Option<Vec<Cow<'a, str>>>,
pub hsize: Option<u64>,
pub method: Method,
pub readtiming: Option<Vec<ReadTiming>>,
pub res: Option<u32>,
pub rt: Option<f64>,
pub src_addr: Option<Cow<'a, str>>,
pub subid: Option<i64>,
pub submax: Option<i64>,
pub time: Option<UnixTimestamp>,
pub ttc: Option<f64>,
pub ttfb: Option<f64>,
pub ttr: Option<f64>,
pub ver: Option<Cow<'a, str>>,
}Fields§
§af: AddressFamilyaddress family, 4 or 6 (integer)
bsize: Option<u64>size of body in octets (int)
dst_addr: Cow<'a, str>target address (string)
err: Option<Cow<'a, str>>[optional] other failure (string)
header: Option<Vec<Cow<'a, str>>>[optional] elements are strings. The last string can be empty to indicate the end of enders or end with “[…]” to indicate truncation (array of strings)
hsize: Option<u64>header size in octets (int)
method: Method“GET”, “HEAD”, or “POST” (string)
readtiming: Option<Vec<ReadTiming>>[optional] timing results for reply data (array of objects)
res: Option<u32>HTTP result code (int)
rt: Option<f64>time to execute request excluding DNS (float)
src_addr: Option<Cow<'a, str>>source address used by probe (string)
subid: Option<i64>[optional] sequence number of this result within a group of results, when the ‘all’ option is used without the ‘combine’ option (int)
submax: Option<i64>[optional] total number of results within a group (int)
time: Option<UnixTimestamp>[optional] Unix timestamp, when the ‘all’ option is used with the ‘combine’ option (int)
ttc: Option<f64>[optional] time to connect to the target (in milli seconds) (float)
ttfb: Option<f64>[optional] time to first response byte received by measurent code after starting to connect (in milli seconds) (float)
ttr: Option<f64>[optional] time to resolve the DNS name (in milli seconds) (float)
ver: Option<Cow<'a, str>>major, minor version of http server (string)
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for HttpReply<'a>
impl<'de, 'a> Deserialize<'de> for HttpReply<'a>
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>,
Auto Trait Implementations§
impl<'a> Freeze for HttpReply<'a>
impl<'a> RefUnwindSafe for HttpReply<'a>
impl<'a> Send for HttpReply<'a>
impl<'a> Sync for HttpReply<'a>
impl<'a> Unpin for HttpReply<'a>
impl<'a> UnwindSafe for HttpReply<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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