pub struct Existing {Show 14 fields
pub name: String,
pub enabled: bool,
pub inbound: bool,
pub allow: bool,
pub profiles: i32,
pub program: String,
pub protocol: i32,
pub local_ports: String,
pub remote: String,
pub local_addresses: String,
pub interfaces_named: bool,
pub interface_types: String,
pub bound: bool,
pub program_exists: bool,
}Expand description
A rule the machine already has, as far as the plan needs to know it.
Fields§
§name: String§enabled: bool§inbound: bool§allow: bool§profiles: i32NET_FW_PROFILE2_* bits.
program: StringThe program the rule is bound to; empty for any program.
protocol: i32§local_ports: String§remote: String§local_addresses: StringThe rule’s local addresses; empty or * for any.
interfaces_named: boolThe rule names adapters (Interfaces).
interface_types: StringThe rule’s interface types: empty or All for every kind of adapter.
bound: boolThe rule is bound to something besides a port and a program: a service, a Store app, particular users or machines, or secure traffic only. A restriction that could not be read counts as one.
program_exists: boolThe program file is still on disk. Meaningless when program is empty.
Trait Implementations§
impl Eq for Existing
impl StructuralPartialEq for Existing
Auto Trait Implementations§
impl Freeze for Existing
impl RefUnwindSafe for Existing
impl Send for Existing
impl Sync for Existing
impl Unpin for Existing
impl UnsafeUnpin for Existing
impl UnwindSafe for Existing
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