#[non_exhaustive]pub enum FirewallPort {
Named(PortName),
Number {
port: NonZeroU16,
protocol: Protocol,
},
}Expand description
A port a firewall step opens.
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.
Named(PortName)
One of the machine’s ports, by name: its number and protocol.
Number
A port by number.
Trait Implementations§
Source§impl Clone for FirewallPort
impl Clone for FirewallPort
Source§impl Debug for FirewallPort
impl Debug for FirewallPort
Source§impl<'de> Deserialize<'de> for FirewallPort
impl<'de> Deserialize<'de> for FirewallPort
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<FirewallPort, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<FirewallPort, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FirewallPort
Source§impl Hash for FirewallPort
impl Hash for FirewallPort
Source§impl JsonSchema for FirewallPort
impl JsonSchema for FirewallPort
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§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl PartialEq for FirewallPort
impl PartialEq for FirewallPort
impl StructuralPartialEq for FirewallPort
Auto Trait Implementations§
impl Freeze for FirewallPort
impl RefUnwindSafe for FirewallPort
impl Send for FirewallPort
impl Sync for FirewallPort
impl Unpin for FirewallPort
impl UnsafeUnpin for FirewallPort
impl UnwindSafe for FirewallPort
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.