pub enum Profile {
Domain,
Private,
Public,
All,
LegacyDomain,
LegacyStandard,
LegacyCurrent,
LegacyMax,
}Expand description
Represents the various Windows Firewall profiles.
This enum includes both legacy (v1) and modern (v2) profile types.
Prefer using the V2 variants unless you’re targeting legacy Windows versions (pre-Vista).
Mirrors the NET_FW_PROFILE_TYPE2
and legacy NET_FW_PROFILE_TYPE enumerations.
Variants§
Domain
Modern: Domain profile.
Private
Modern: Private profile (used on trusted networks like home/work).
Public
Modern: Public profile (used on untrusted networks like public Wi-Fi).
All
Modern: All profiles combined (bitflag: DOMAIN | PRIVATE | PUBLIC).
LegacyDomain
Legacy: Domain profile (Windows XP/2003).
LegacyStandard
Legacy: Standard profile (aka Private/Public in older systems).
LegacyCurrent
Legacy: Current profile (represents the currently active profile).
LegacyMax
Legacy: Max profile value (internal use only).
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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