windows_firewall 0.7.0

A crate for managing Windows Firewall rules and settings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{collections::HashSet, hash::Hash};

pub use self::bstr::*;
pub use self::com::*;
pub use self::variant::*;

pub mod bstr;
pub mod com;
pub mod variant;

pub fn into_hashset<T, U>(items: impl IntoIterator<Item = T>) -> HashSet<U>
where
    T: Into<U>,
    U: Eq + Hash,
{
    items.into_iter().map(Into::into).collect()
}