pub struct TcpProbeResult {
pub addr: SocketAddr,
pub connected: bool,
pub took: Duration,
pub error: Option<String>,
}Expand description
Result of a TCP connect probe.
Fields§
§addr: SocketAddrThe target socket address.
connected: boolWhether the three-way handshake completed.
took: DurationTime from start to connection or failure.
error: Option<String>Human-readable error string when connected is false.
Trait Implementations§
Source§impl Clone for TcpProbeResult
impl Clone for TcpProbeResult
Source§fn clone(&self) -> TcpProbeResult
fn clone(&self) -> TcpProbeResult
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 TcpProbeResult
impl Debug for TcpProbeResult
Source§impl<'de> Deserialize<'de> for TcpProbeResult
impl<'de> Deserialize<'de> for TcpProbeResult
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 TcpProbeResult
impl PartialEq for TcpProbeResult
Source§impl Serialize for TcpProbeResult
impl Serialize for TcpProbeResult
impl Eq for TcpProbeResult
impl StructuralPartialEq for TcpProbeResult
Auto Trait Implementations§
impl Freeze for TcpProbeResult
impl RefUnwindSafe for TcpProbeResult
impl Send for TcpProbeResult
impl Sync for TcpProbeResult
impl Unpin for TcpProbeResult
impl UnsafeUnpin for TcpProbeResult
impl UnwindSafe for TcpProbeResult
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