pub struct HttpProbeResult {
pub url: String,
pub status: Option<u16>,
pub took: Duration,
pub error: Option<String>,
}Expand description
Result of an HTTP HEAD probe.
Fields§
§url: StringThe URL that was probed.
status: Option<u16>HTTP response status code, when a response was received.
took: DurationTime from request start to response or failure.
error: Option<String>Human-readable error string on failure.
Trait Implementations§
Source§impl Clone for HttpProbeResult
impl Clone for HttpProbeResult
Source§fn clone(&self) -> HttpProbeResult
fn clone(&self) -> HttpProbeResult
Returns a duplicate 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 HttpProbeResult
impl Debug for HttpProbeResult
Source§impl<'de> Deserialize<'de> for HttpProbeResult
impl<'de> Deserialize<'de> for HttpProbeResult
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 PartialEq for HttpProbeResult
impl PartialEq for HttpProbeResult
Source§impl Serialize for HttpProbeResult
impl Serialize for HttpProbeResult
impl Eq for HttpProbeResult
impl StructuralPartialEq for HttpProbeResult
Auto Trait Implementations§
impl Freeze for HttpProbeResult
impl RefUnwindSafe for HttpProbeResult
impl Send for HttpProbeResult
impl Sync for HttpProbeResult
impl Unpin for HttpProbeResult
impl UnsafeUnpin for HttpProbeResult
impl UnwindSafe for HttpProbeResult
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