pub struct SocketProbeSpec {
pub host: String,
pub port: Option<u16>,
pub payload: Option<Vec<u8>>,
pub tls: bool,
pub session: bool,
pub read_max: u32,
pub read_idle_ms: u32,
}Expand description
Generic socket options (shared by dns/tcp/udp probes).
Fields§
§host: String§port: Option<u16>§payload: Option<Vec<u8>>§tls: boolTLS handshake before application data (TCP only).
session: boolKeep connection open across multiple send on the same probe name.
read_max: u32Maximum bytes to read per exchange (default 65536).
read_idle_ms: u32After first read, keep reading until idle for this many ms (0 = single read).
Implementations§
Source§impl SocketProbeSpec
impl SocketProbeSpec
pub fn is_dns_resolver_mode(&self) -> bool
Trait Implementations§
Source§impl Clone for SocketProbeSpec
impl Clone for SocketProbeSpec
Source§fn clone(&self) -> SocketProbeSpec
fn clone(&self) -> SocketProbeSpec
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 SocketProbeSpec
impl Debug for SocketProbeSpec
Source§impl Default for SocketProbeSpec
impl Default for SocketProbeSpec
Source§impl PartialEq for SocketProbeSpec
impl PartialEq for SocketProbeSpec
impl StructuralPartialEq for SocketProbeSpec
Auto Trait Implementations§
impl Freeze for SocketProbeSpec
impl RefUnwindSafe for SocketProbeSpec
impl Send for SocketProbeSpec
impl Sync for SocketProbeSpec
impl Unpin for SocketProbeSpec
impl UnsafeUnpin for SocketProbeSpec
impl UnwindSafe for SocketProbeSpec
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