#[non_exhaustive]pub enum PortProtocol {
Tcp,
Udp,
Http,
Https,
Tls,
}Expand description
What a port speaks: TCP or UDP, and for TCP whether probes and checks speak HTTP or TLS.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tcp
TCP, the default: probed by connecting.
Udp
UDP (DNS, SNMP, TFTP): nothing waits for it and no derived check probes it.
Http
HTTP over TCP: derived checks request a page.
Https
HTTPS over TCP: derived checks request a page over TLS, certificates unchecked.
Tls
TLS over TCP (not HTTP): probes speak TLS, certificates unchecked.
Implementations§
Trait Implementations§
Source§impl Clone for PortProtocol
impl Clone for PortProtocol
impl Copy for PortProtocol
Source§impl Debug for PortProtocol
impl Debug for PortProtocol
Source§impl Default for PortProtocol
impl Default for PortProtocol
Source§impl<'de> Deserialize<'de> for PortProtocol
impl<'de> Deserialize<'de> for PortProtocol
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
impl Eq for PortProtocol
Source§impl Hash for PortProtocol
impl Hash for PortProtocol
Source§impl JsonSchema for PortProtocol
impl JsonSchema for PortProtocol
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PortProtocol
impl PartialEq for PortProtocol
Source§impl Serialize for PortProtocol
impl Serialize for PortProtocol
impl StructuralPartialEq for PortProtocol
Auto Trait Implementations§
impl Freeze for PortProtocol
impl RefUnwindSafe for PortProtocol
impl Send for PortProtocol
impl Sync for PortProtocol
impl Unpin for PortProtocol
impl UnsafeUnpin for PortProtocol
impl UnwindSafe for PortProtocol
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.