pub struct DetectConfig { /* private fields */ }Expand description
Where to probe and how patient to be.
Implementations§
Source§impl DetectConfig
impl DetectConfig
Sourcepub fn new(url: &str) -> Result<Self, HttpClientError>
pub fn new(url: &str) -> Result<Self, HttpClientError>
A configuration pointed at url.
§Errors
HttpClientError::Url if url is not a URL a request can be built
against.
Sourcepub const fn with_probe_timeout(self, timeout: Duration) -> Self
pub const fn with_probe_timeout(self, timeout: Duration) -> Self
Bounds how long the probe may take.
Applies to the probe only. The GET half opens a stream that is
supposed to stay open, so a request timeout handed to it would break
every connection longer than it — see
LegacySseConfig::with_connect_timeout, which is why this config has
a separate one.
Trait Implementations§
Source§impl Clone for DetectConfig
impl Clone for DetectConfig
Auto Trait Implementations§
impl Freeze for DetectConfig
impl RefUnwindSafe for DetectConfig
impl Send for DetectConfig
impl Sync for DetectConfig
impl Unpin for DetectConfig
impl UnsafeUnpin for DetectConfig
impl UnwindSafe for DetectConfig
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