#[non_exhaustive]pub enum ProbeTargetError {
Empty,
HttpsUnsupported {
target: String,
},
NotHttpUrl {
target: String,
},
MissingHost {
target: String,
},
InvalidHost {
target: String,
},
InvalidPath {
target: String,
},
MissingPort {
target: String,
},
BadPort {
target: String,
},
}Expand description
Why a probe target was rejected.
#[non_exhaustive]: growth is expected as probe kinds change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Empty
The target is empty or all whitespace.
HttpsUnsupported
An https:// URL. TLS probe targets are not supported.
NotHttpUrl
An HTTP probe target with no http:// scheme.
MissingHost
The authority is empty: http:///path.
InvalidHost
The host contains a character the grammar has no field for: @
(userinfo), whitespace, or an embedded : (outside a bracketed IPv6
literal, a sign the authority carried more than one host:port
pair).
InvalidPath
The path contains whitespace or a control character. Both break the
request line the prober builds around it: a \r\n appends
Flockfile-chosen headers, or an entire second request, to what goes
on the socket, and a space ends the path field early.
MissingPort
A TCP target with no :port.
BadPort
The port is not a u16.
Trait Implementations§
Source§impl Clone for ProbeTargetError
impl Clone for ProbeTargetError
Source§fn clone(&self) -> ProbeTargetError
fn clone(&self) -> ProbeTargetError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProbeTargetError
impl Debug for ProbeTargetError
Source§impl Display for ProbeTargetError
impl Display for ProbeTargetError
impl Eq for ProbeTargetError
Source§impl Error for ProbeTargetError
impl Error for ProbeTargetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ProbeTargetError
impl PartialEq for ProbeTargetError
impl StructuralPartialEq for ProbeTargetError
Auto Trait Implementations§
impl Freeze for ProbeTargetError
impl RefUnwindSafe for ProbeTargetError
impl Send for ProbeTargetError
impl Sync for ProbeTargetError
impl Unpin for ProbeTargetError
impl UnsafeUnpin for ProbeTargetError
impl UnwindSafe for ProbeTargetError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.