pub struct HostFirewallConfig { /* private fields */ }Expand description
Platform firewall configuration for a FIPS host-facing TUN interface.
Implementations§
Source§impl HostFirewallConfig
impl HostFirewallConfig
Sourcepub fn with_inbound_tcp_ports(
self,
ports: impl IntoIterator<Item = u16>,
) -> Self
pub fn with_inbound_tcp_ports( self, ports: impl IntoIterator<Item = u16>, ) -> Self
Allow inbound TCP connections to the supplied destination ports.
Sourcepub fn with_linux_table_name(self, table_name: impl Into<String>) -> Self
pub fn with_linux_table_name(self, table_name: impl Into<String>) -> Self
Override the managed Linux nftables table name.
Sourcepub fn with_macos_anchor_name(self, anchor_name: impl Into<String>) -> Self
pub fn with_macos_anchor_name(self, anchor_name: impl Into<String>) -> Self
Override the managed macOS PF anchor name.
Sourcepub fn inbound_tcp_ports(&self) -> &[u16]
pub fn inbound_tcp_ports(&self) -> &[u16]
Normalized inbound TCP destination ports.
Sourcepub fn linux_table_name(&self) -> &str
pub fn linux_table_name(&self) -> &str
Managed Linux nftables table name.
Sourcepub fn macos_anchor_name(&self) -> &str
pub fn macos_anchor_name(&self) -> &str
Managed macOS PF anchor name.
Trait Implementations§
Source§impl Clone for HostFirewallConfig
impl Clone for HostFirewallConfig
Source§fn clone(&self) -> HostFirewallConfig
fn clone(&self) -> HostFirewallConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostFirewallConfig
impl Debug for HostFirewallConfig
Source§impl PartialEq for HostFirewallConfig
impl PartialEq for HostFirewallConfig
Source§fn eq(&self, other: &HostFirewallConfig) -> bool
fn eq(&self, other: &HostFirewallConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HostFirewallConfig
impl StructuralPartialEq for HostFirewallConfig
Auto Trait Implementations§
impl Freeze for HostFirewallConfig
impl RefUnwindSafe for HostFirewallConfig
impl Send for HostFirewallConfig
impl Sync for HostFirewallConfig
impl Unpin for HostFirewallConfig
impl UnsafeUnpin for HostFirewallConfig
impl UnwindSafe for HostFirewallConfig
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,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more