pub enum Exposure {
LocalOnly,
LanOnly,
Exposed,
Unknown,
}Expand description
How widely a listening service is reachable.
Variants§
LocalOnly
Bound to loopback — only reachable from this host.
LanOnly
Firewall blocks WAN but LAN peers can reach the service.
Exposed
Reachable from any peer that can reach this host.
Unknown
Firewall state unknown (no Firewall backend).
Implementations§
Source§impl Exposure
impl Exposure
Sourcepub fn from_scope_and_verdict(
bind: &BindScope,
verdict: FirewallVerdict,
) -> Self
pub fn from_scope_and_verdict( bind: &BindScope, verdict: FirewallVerdict, ) -> Self
Combine a BindScope with a FirewallVerdict into an Exposure.
Loopback-bound services are always LocalOnly regardless of firewall.
A specific-address bind on a non-loopback address is treated like
any-address for firewall purposes (the firewall still governs WAN).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exposure
impl<'de> Deserialize<'de> for Exposure
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 Copy for Exposure
impl Eq for Exposure
impl StructuralPartialEq for Exposure
Auto Trait Implementations§
impl Freeze for Exposure
impl RefUnwindSafe for Exposure
impl Send for Exposure
impl Sync for Exposure
impl Unpin for Exposure
impl UnsafeUnpin for Exposure
impl UnwindSafe for Exposure
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